Preparing report...

Report for github.com/nite-coder/blackbear

A+    Excellent!    Found 12 issues across 40 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!


gocyclo85%

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.

    • blackbear/pkg/web/router.go
    • Line 240: warning: cyclomatic complexity 18 of function (*router).Find() is high (> 15) (gocyclo)
    • Line 152: warning: cyclomatic complexity 16 of function (*router).Add() is high (> 15) (gocyclo)
    • blackbear/pkg/cast/cast.go
    • Line 556: warning: cyclomatic complexity 26 of function ToUint8() is high (> 15) (gocyclo)
    • Line 490: warning: cyclomatic complexity 26 of function ToUint16() is high (> 15) (gocyclo)
    • Line 424: warning: cyclomatic complexity 26 of function ToUint32() is high (> 15) (gocyclo)
    • Line 358: warning: cyclomatic complexity 26 of function ToUint64() is high (> 15) (gocyclo)
    • Line 292: warning: cyclomatic complexity 26 of function ToUint() is high (> 15) (gocyclo)
    • Line 13: warning: cyclomatic complexity 25 of function ToString() is high (> 15) (gocyclo)
    • Line 202: warning: cyclomatic complexity 19 of function ToInt8() is high (> 15) (gocyclo)
    • Line 157: warning: cyclomatic complexity 19 of function ToInt16() is high (> 15) (gocyclo)
    • Line 112: warning: cyclomatic complexity 19 of function ToInt32() is high (> 15) (gocyclo)
    • Line 67: warning: cyclomatic complexity 19 of function ToInt64() is high (> 15) (gocyclo)
    • Line 247: warning: cyclomatic complexity 19 of function ToInt() is high (> 15) (gocyclo)
    • Line 684: warning: cyclomatic complexity 18 of function ToFloat32() is high (> 15) (gocyclo)
    • Line 641: warning: cyclomatic complexity 18 of function ToFloat64() is high (> 15) (gocyclo)

golint87%

Golint is a linter for Go source code.

    • blackbear/pkg/config/configuration.go
    • Line 18: warning: exported var ErrFileNotFound should have comment or be unexported (golint)
    • Line 23: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 35: warning: exported type Config should have comment or be unexported (golint)
    • Line 44: warning: exported function New should have comment or be unexported (golint)
    • Line 87: warning: exported method Config.UnmarshalKey should have comment or be unexported (golint)
    • blackbear/pkg/cast/cast.go
    • Line 10: warning: exported var ErrNegativeNotAllowed should have comment or be unexported (golint)
    • Line 201: warning: comment on exported function ToInt8 should be of the form "ToInt8 ..." (golint)
    • Line 357: warning: comment on exported function ToUint64 should be of the form "ToUint64 ..." (golint)
    • Line 423: warning: comment on exported function ToUint32 should be of the form "ToUint32 ..." (golint)
    • Line 555: warning: comment on exported function ToUint8 should be of the form "ToUint8 ..." (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!