Preparing report...

Report for github.com/dryproject/drycop

A+    Excellent!    Found 6 issues across 12 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!


gocyclo66%

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.

    • drycop/drycop/enum/languages.go
    • Line 107: warning: cyclomatic complexity 29 of function (*Language).Set() is high (> 15) (gocyclo)
    • Line 46: warning: cyclomatic complexity 29 of function (*Language).String() is high (> 15) (gocyclo)
    • drycop/drycop/enum/builders.go
    • Line 105: warning: cyclomatic complexity 16 of function (*Builder).TestCommand() is high (> 15) (gocyclo)
    • Line 68: warning: cyclomatic complexity 16 of function (*Builder).Set() is high (> 15) (gocyclo)
    • Line 33: warning: cyclomatic complexity 16 of function (*Builder).String() is high (> 15) (gocyclo)
    • drycop/drycop/util/project.go
    • Line 209: warning: cyclomatic complexity 30 of function (Project).DetectMarkup() is high (> 15) (gocyclo)
    • Line 115: warning: cyclomatic complexity 16 of function (Project).DetectBuilder() is high (> 15) (gocyclo)

golint58%

Golint is a linter for Go source code.

    • drycop/drycop/enum/builders.go
    • Line 29: warning: exported method Builder.Type should have comment or be unexported (golint)
    • Line 68: warning: exported method Builder.Set should have comment or be unexported (golint)
    • Line 105: warning: exported method Builder.TestCommand should have comment or be unexported (golint)
    • drycop/drycop/enum/frameworks.go
    • Line 19: warning: exported method Framework.Type should have comment or be unexported (golint)
    • Line 38: warning: exported method Framework.Set should have comment or be unexported (golint)
    • Line 55: warning: exported method Framework.TestCommand should have comment or be unexported (golint)
    • drycop/drycop/enum/languages.go
    • Line 42: warning: exported method Language.Type should have comment or be unexported (golint)
    • Line 107: warning: exported method Language.Set should have comment or be unexported (golint)
    • Line 170: warning: exported method Language.TestCommand should have comment or be unexported (golint)
    • drycop/drycop/util/config.go
    • Line 7: warning: exported type File should have comment or be unexported (golint)
    • Line 13: warning: exported type CheckConfig should have comment or be unexported (golint)
    • Line 18: warning: exported type TemplatesConfig should have comment or be unexported (golint)
    • Line 22: warning: exported function LoadCheckConfig should have comment or be unexported (golint)
    • Line 31: warning: exported function LoadTemplatesConfig should have comment or be unexported (golint)
    • drycop/drycop/util/project.go
    • Line 13: warning: exported type Project should have comment or be unexported (golint)
    • Line 23: warning: exported function NewProject should have comment or be unexported (golint)
    • Line 36: warning: exported method Project.CheckDirExists should have comment or be unexported (golint)
    • Line 52: warning: exported method Project.CheckFileExists should have comment or be unexported (golint)
    • Line 68: warning: exported method Project.DirExists should have comment or be unexported (golint)
    • Line 80: warning: exported method Project.FileExists should have comment or be unexported (golint)
    • Line 92: warning: exported method Project.FilesExist should have comment or be unexported (golint)
    • Line 96: warning: exported method Project.Detect should have comment or be unexported (golint)
    • Line 115: warning: exported method Project.DetectBuilder should have comment or be unexported (golint)
    • Line 162: warning: exported method Project.DetectLanguage should have comment or be unexported (golint)
    • Line 195: warning: exported method Project.DetectFramework should have comment or be unexported (golint)
    • Line 209: warning: exported method Project.DetectMarkup should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!