Preparing report...

Report for github.com/doozer-de/restgen

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


golint61%

Golint is a linter for Go source code.

    • restgen/registry/enum.go
    • Line 10: warning: exported type Enum should have comment or be unexported (golint)
    • Line 29: warning: exported function NewEnum should have comment or be unexported (golint)
    • Line 56: warning: exported type EnumValue should have comment or be unexported (golint)
    • Line 66: warning: exported type Enums should have comment or be unexported (golint)
    • Line 68: warning: exported method Enums.Add should have comment or be unexported (golint)
    • Line 77: warning: exported method Enums.Get should have comment or be unexported (golint)
    • Line 87: warning: exported function NewEnumValue should have comment or be unexported (golint)
    • restgen/registry/field.go
    • Line 49: warning: exported method Field.IsIntermediateMap should have comment or be unexported (golint)
    • Line 53: warning: exported method Field.IsEnum should have comment or be unexported (golint)
    • restgen/registry/file.go
    • Line 9: warning: exported const OptionDartPackage should have comment or be unexported (golint)
    • Line 11: warning: exported type Files should have comment or be unexported (golint)
    • Line 13: warning: exported method Files.Add should have comment or be unexported (golint)
    • Line 22: warning: exported method Files.Get should have comment or be unexported (golint)
    • Line 31: warning: exported type File should have comment or be unexported (golint)
    • Line 42: warning: exported function NewFile should have comment or be unexported (golint)
    • restgen/registry/querystring.go
    • Line 93: warning: exported type SortedParsedQueryString should have comment or be unexported (golint)
    • Line 95: warning: exported type QueryStringKV should have comment or be unexported (golint)
    • Line 115: warning: comment on exported type ByKey should be of the form "ByKey ..." (with optional leading article) (golint)
    • restgen/registry/registry.go
    • Line 15: warning: exported method Messages.Add should have comment or be unexported (golint)
    • Line 24: warning: exported method Messages.Get should have comment or be unexported (golint)
    • restgen/registry/service.go
    • Line 12: warning: exported type Methods should have comment or be unexported (golint)
    • Line 14: warning: exported method Methods.Add should have comment or be unexported (golint)
    • Line 24: warning: exported method Methods.Get should have comment or be unexported (golint)
    • Line 51: warning: exported method Service.RegisterMethod should have comment or be unexported (golint)
    • Line 96: warning: exported method Service.HasServiceMapExtension 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!


misspell90%

Misspell Finds commonly misspelled English words