Preparing report...

Report for github.com/goreflect/gostructor

A+    Excellent!    Found 11 issues across 48 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!


gocyclo97%

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.


golint83%

Golint is a linter for Go source code.

    • gostructor/tags/priority/lexer.go
    • Line 10: warning: comment on exported type Scanner should be of the form "Scanner ..." (with optional leading article) (golint)
    • Line 18: warning: exported type Token should have comment or be unexported (golint)
    • Line 22: warning: exported const WRONG should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: comment on exported const COMMA should be of the form "COMMA ..." (golint)
    • gostructor/tags/priority/parser.go
    • Line 18: warning: exported type TerminalSymbol should have comment or be unexported (golint)
    • Line 25: warning: exported type AST should have comment or be unexported (golint)
    • Line 29: warning: exported type Node should have comment or be unexported (golint)
    • Line 35: warning: exported function NewParser should have comment or be unexported (golint)
    • gostructor/pipeline/vault_func.go
    • Line 70: warning: exported method VaultConfig.GetBaseType should have comment or be unexported (golint)
    • Line 87: warning: exported method VaultConfig.GetComplexType should have comment or be unexported (golint)
    • gostructor/pipeline/yaml_func.go
    • Line 64: warning: receiver name config should be consistent with previous receiver name yaml for YamlConfig (golint)
    • Line 68: warning: receiver name config should be consistent with previous receiver name yaml for YamlConfig (golint)
    • Line 73: warning: receiver name config should be consistent with previous receiver name yaml for YamlConfig (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words