Preparing report...

Report for github.com/Xumeiquer/go4th

A    Great!    Found 6 issues across 16 files

Tweet

gofmt81%

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!


gocyclo87%

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.

    • go4th/alerts_test.go
    • Line 343: warning: cyclomatic complexity 20 of function TestCreateAlert() is high (> 15) (gocyclo)
    • Line 431: warning: cyclomatic complexity 17 of function TestUpdateAlert() is high (> 15) (gocyclo)
    • go4th/case_test.go
    • Line 231: warning: cyclomatic complexity 18 of function TestCreateCase() is high (> 15) (gocyclo)
    • Line 311: warning: cyclomatic complexity 17 of function TestUpdateCase() is high (> 15) (gocyclo)

golint81%

Golint is a linter for Go source code.

    • go4th/go4th.go
    • Line 111: warning: comment on exported const White should be of the form "White ..." (golint)
    • Line 113: warning: exported const Green should have comment (or a comment on this block) or be unexported (golint)
    • Line 117: warning: comment on exported const Low should be of the form "Low ..." (golint)
    • Line 127: warning: comment on exported const New should be of the form "New ..." (golint)
    • go4th/observable.go
    • Line 36: warning: comment on exported function NewObservable should be of the form "NewObservable ..." (golint)
    • go4th/query.go
    • Line 71: warning: comment on exported type Between should be of the form "Between ..." (with optional leading article) (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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!