Preparing report...

Report for github.com/drud/ddev

A+    Excellent!    Found 19 issues across 146 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo93%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • ddev/pkg/ddevapp/config.go
    • Line 135: warning: cyclomatic complexity 22 of function (*DdevApp).WriteConfig() is high (> 15) (gocyclo)
    • Line 672: warning: cyclomatic complexity 21 of function (*DdevApp).RenderComposeYAML() is high (> 15) (gocyclo)
    • Line 391: warning: cyclomatic complexity 18 of function (*DdevApp).ValidateConfig() is high (> 15) (gocyclo)
    • ddev/pkg/ddevapp/ddevapp.go
    • Line 418: warning: cyclomatic complexity 33 of function (*DdevApp).ImportDB() is high (> 15) (gocyclo)
    • Line 791: warning: cyclomatic complexity 28 of function (*DdevApp).Start() is high (> 15) (gocyclo)
    • Line 212: warning: cyclomatic complexity 26 of function (*DdevApp).Describe() is high (> 15) (gocyclo)
    • Line 1734: warning: cyclomatic complexity 19 of function (*DdevApp).Stop() is high (> 15) (gocyclo)
    • Line 1061: warning: cyclomatic complexity 17 of function (*DdevApp).Exec() is high (> 15) (gocyclo)
    • Line 1650: warning: cyclomatic complexity 16 of function (*DdevApp).RestoreSnapshot() is high (> 15) (gocyclo)

golint95%

Golint is a linter for Go source code.

    • ddev/pkg/ddevapp/instrumentation.go
    • Line 27: warning: exported method SegmentNoopLogger.Logf should have comment or be unexported (golint)
    • Line 28: warning: exported method SegmentNoopLogger.Errorf should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell95%

Misspell Finds commonly misspelled English words

    • ddev/cmd/ddev/cmd/config.go
    • Line 275: warning: "compatability" is a misspelling of "compatibility" (misspell)
    • Line 280: warning: "compatability" is a misspelling of "compatibility" (misspell)
    • Line 493: warning: "explicity" is a misspelling of "explicitly" (misspell)
    • Line 498: warning: "explicity" is a misspelling of "explicitly" (misspell)