Preparing report...

Report for github.com/Fs02/grimoire

A+    Excellent!    Found 13 issues across 119 files

Tweet

gofmt99%

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


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.

    • grimoire/changeset/cast.go
    • Line 142: warning: cyclomatic complexity 17 of function isDeepZero() is high (> 15) (gocyclo)
    • Line 100: warning: cyclomatic complexity 17 of function isZero() is high (> 15) (gocyclo)
    • Line 17: warning: cyclomatic complexity 16 of function Cast() is high (> 15) (gocyclo)
    • grimoire/schema/convert.go
    • Line 21: warning: cyclomatic complexity 42 of function convertAssign() is high (> 15) (gocyclo)
    • Line 228: warning: cyclomatic complexity 20 of function assignZero() is high (> 15) (gocyclo)

golint98%

Golint is a linter for Go source code.

    • grimoire/errors/errors.go
    • Line 4: warning: exported type Kind should have comment or be unexported (golint)
    • Line 7: warning: exported const Unexpected should have comment (or a comment on this block) 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.


misspell98%

Misspell Finds commonly misspelled English words

    • grimoire/params/form_test.go
    • Line 537: warning: "refference" is a misspelling of "reference" (misspell)
    • Line 537: warning: "refference" is a misspelling of "reference" (misspell)
    • Line 549: warning: "refference" is a misspelling of "reference" (misspell)
    • Line 550: warning: "refference" is a misspelling of "reference" (misspell)