Preparing report...

Report for github.com/dizzyfool/genna

A+    Excellent!    Found 10 issues across 47 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!


gocyclo95%

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.


golint80%

Golint is a linter for Go source code.

    • genna/generators/base/base.go
    • Line 32: warning: comment on exported const GoPgVer should be of the form "GoPgVer ..." (golint)
    • Line 35: warning: comment on exported const Pkg should be of the form "Pkg ..." (golint)
    • Line 204: warning: exported method Generator.GenerateFromEntities should have comment or be unexported (golint)
    • genna/model/custom_types.go
    • Line 12: warning: exported type CustomType should have comment or be unexported (golint)
    • Line 19: warning: exported type CustomTypeMapping should have comment or be unexported (golint)
    • Line 21: warning: exported method CustomTypeMapping.Add should have comment or be unexported (golint)
    • Line 29: warning: exported method CustomTypeMapping.Imports should have comment or be unexported (golint)
    • Line 49: warning: exported method CustomTypeMapping.Has should have comment or be unexported (golint)
    • Line 54: warning: exported method CustomTypeMapping.GoType should have comment or be unexported (golint)
    • Line 62: warning: exported method CustomTypeMapping.GoImport should have comment or be unexported (golint)
    • Line 70: warning: exported function ParseCustomTypes should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!