Preparing report...

Report for github.com/researchlab/gdk

A+    Excellent!    Found 9 issues across 20 files

Tweet

gofmt95%

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!


gocyclo100%

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.

No problems detected. Good job!


golint65%

Golint is a linter for Go source code.

    • gdk/file/file.go
    • Line 111: warning: comment on exported function SearchFile should be of the form "SearchFile ..." (golint)
    • Line 193: warning: exported function SearchFileWithAffix should have comment or be unexported (golint)
    • gdk/net/response.go
    • Line 13: warning: error var ERRNilResponse should have name of the form ErrFoo (golint)
    • Line 13: warning: exported var ERRNilResponse should have comment or be unexported (golint)
    • gdk/slice/sum.go
    • Line 3: warning: comment on exported function SumInt64 should be of the form "SumInt64 ..." (golint)
    • Line 11: warning: comment on exported function SumInt should be of the form "SumInt ..." (golint)
    • Line 19: warning: comment on exported function SumFloat64 should be of the form "SumFloat64 ..." (golint)
    • gdk/slice/unique.go
    • Line 22: warning: comment on exported function UniqueInt should be of the form "UniqueInt ..." (golint)
    • Line 37: warning: comment on exported function UniqueString should be of the form "UniqueString ..." (golint)
    • gdk/convert/convert.go
    • Line 20: warning: comment on exported var ERR_NEED_NUMERIC should be of the form "ERR_NEED_NUMERIC ..." (golint)
    • Line 21: warning: error var ERR_NEED_NUMERIC should have name of the form ErrFoo (golint)
    • Line 23: warning: comment on exported var ERR_BYTES_INVALILD should be of the form "ERR_BYTES_INVALILD ..." (golint)
    • Line 24: warning: error var ERR_BYTES_INVALILD should have name of the form ErrFoo (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!