Preparing report...

Report for github.com/heirko/go-contrib

B    Not bad!    Found 5 issues across 6 files

Tweet

gofmt66%

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!


gocyclo83%

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.


golint33%

Golint is a linter for Go source code.

    • go-contrib/logrusHelper/config.go
    • Line 1: warning: don't use MixedCaps in package name; logrusHelper should be logrushelper (golint)
    • Line 81: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-contrib/properties/config.go
    • Line 4: warning: comment on exported const DefaultConfigType should be of the form "DefaultConfigType ..." (golint)
    • Line 7: warning: comment on exported const DefaultConfigName should be of the form "DefaultConfigName ..." (golint)
    • Line 10: warning: comment on exported const DefaultConfigDir should be of the form "DefaultConfigDir ..." (golint)
    • Line 13: warning: comment on exported const DefaultConfigMode should be of the form "DefaultConfigMode ..." (golint)
    • Line 15: warning: comment on exported const DefaultTestModeTag should be of the form "DefaultTestModeTag ..." (golint)
    • Line 61: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 104: warning: comment on exported type RemoteProvider should be of the form "RemoteProvider ..." (with optional leading article) (golint)
    • go-contrib/properties/properties.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 18: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 107: warning: comment on exported method Properties.GetSubOrDie should be of the form "GetSubOrDie ..." (golint)
    • Line 121: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 160: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 165: warning: comment on exported method Properties.LoadModeProperties should be of the form "LoadModeProperties ..." (golint)
    • Line 170: warning: receiver name props should be consistent with previous receiver name p for Properties (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign83%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!