Preparing report...

Report for github.com/muir/nfigure

(v0.0.1)

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


gocyclo64%

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.

    • fill.go
    • Line 280: warning: cyclomatic complexity 37 of function (fillData).fillField() is high (> 15) (gocyclo)
    • flags_import.go
    • Line 108: warning: cyclomatic complexity 36 of function ExportToFlagSet() is high (> 15) (gocyclo)
    • flags_command.go
    • Line 591: warning: cyclomatic complexity 29 of function (*FlagHandler).Usage() is high (> 15) (gocyclo)
    • Line 459: warning: cyclomatic complexity 16 of function (opt).format() is high (> 15) (gocyclo)
    • source.go
    • Line 114: warning: cyclomatic complexity 24 of function (FileFiller).Fill() is high (> 15) (gocyclo)
    • flags_test.go
    • Line 423: warning: cyclomatic complexity 24 of function TestFlags() is high (> 15) (gocyclo)
    • flags_parse.go
    • Line 17: warning: cyclomatic complexity 48 of function (*FlagHandler).parseFlags() is high (> 15) (gocyclo)
    • Line 210: warning: cyclomatic complexity 36 of function (*FlagHandler).Fill() is high (> 15) (gocyclo)
    • Line 410: warning: cyclomatic complexity 17 of function (*FlagHandler).PreWalk() is high (> 15) (gocyclo)

golint70%

Golint is a linter for Go source code.

    • request.go
    • Line 10: warning: exported type RequestFuncArg should have comment or be unexported (golint)
    • Line 66: warning: exported method Request.Registry should have comment or be unexported (golint)
    • source.go
    • Line 24: warning: exported type FileFillerOpts should have comment or be unexported (golint)
    • Line 26: warning: exported function WithUnmarshalOpts should have comment or be unexported (golint)
    • fill.go
    • Line 24: warning: exported type CanRecurseFiller should have comment or be unexported (golint)
    • Line 36: warning: exported type CanLenFiller should have comment or be unexported (golint)
    • Line 42: warning: exported type CanKeysFiller should have comment or be unexported (golint)
    • Line 48: warning: exported type CanPreWalkFiller should have comment or be unexported (golint)
    • Line 55: warning: exported type CanConfigureCompleteFiller should have comment or be unexported (golint)
    • Line 62: warning: exported type CanPreConfigureFiller should have comment or be unexported (golint)
    • Line 68: warning: exported type CanAddConfigFileFiller should have comment or be unexported (golint)
    • Line 245: warning: receiver name fillers should be consistent with previous receiver name f for fillerCollection (golint)
    • flags_command.go
    • Line 27: warning: comment on exported type FlagHandler should be of the form "FlagHandler ..." (with optional leading article) (golint)
    • Line 746: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • registry.go
    • Line 60: warning: exported function WithoutFillers should have comment or be unexported (golint)
    • Line 76: warning: comment on exported function WithMetaTag should be of the form "WithMetaTag ..." (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!


misspell70%

Misspell Finds commonly misspelled English words

    • doc.go
    • Line 62: warning: "redundent" is a misspelling of "redundant" (misspell)
    • env.go
    • Line 42: warning: "simpley" is a misspelling of "simply" (misspell)