Preparing report...

Report for github.com/cloudchacho/hedwig-go

A+    Excellent!    Found 8 issues across 21 files

Tweet

gofmt90%

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!


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.


golint71%

Golint is a linter for Go source code.

    • hedwig-go/validator.go
    • Line 22: warning: exported type MetaAttributes should have comment or be unexported (golint)
    • Line 128: warning: exported function NewMessageValidator should have comment or be unexported (golint)
    • hedwig-go/jsonschema/jsonschema.go
    • Line 325: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 328: 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 331: 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 337: 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 342: 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 345: 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 352: 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 357: 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)
    • hedwig-go/logger_interfaces.go
    • Line 14: warning: exported type LoggingFields should have comment or be unexported (golint)
    • Line 53: warning: exported function LogrusGetLoggerFunc should have comment or be unexported (golint)
    • hedwig-go/types.go
    • Line 23: warning: comment on exported type CallbackKey should be of the form "CallbackKey ..." (with optional leading article) (golint)
    • Line 34: warning: exported type CallbackRegistry should have comment or be unexported (golint)
    • Line 39: warning: exported type ConsumerCallback should have comment or be unexported (golint)
    • Line 41: warning: exported type IBackend should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!