Preparing report...

Report for github.com/lovego/strmap

A    Great!    Found 4 issues across 4 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


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!


golint50%

Golint is a linter for Go source code.

    • strmap/convert.go
    • Line 7: warning: exported function Convert should have comment or be unexported (golint)
    • Line 36: warning: exported function ConvertSlice should have comment or be unexported (golint)
    • strmap/strmap.go
    • Line 9: warning: exported type StrMap should have comment or be unexported (golint)
    • Line 11: warning: exported method StrMap.Get should have comment or be unexported (golint)
    • Line 22: warning: exported method StrMap.GetSlice should have comment or be unexported (golint)
    • Line 40: warning: exported method StrMap.GetBool should have comment or be unexported (golint)
    • Line 51: warning: exported method StrMap.GetString should have comment or be unexported (golint)
    • Line 62: warning: exported method StrMap.GetStringSlice should have comment or be unexported (golint)
    • Line 73: warning: exported method StrMap.GetInt should have comment or be unexported (golint)
    • Line 84: warning: exported method StrMap.GetInt64 should have comment or be unexported (golint)
    • Line 95: warning: exported method StrMap.GetInt32 should have comment or be unexported (golint)
    • Line 106: warning: exported method StrMap.GetInt16 should have comment or be unexported (golint)
    • Line 117: warning: exported method StrMap.GetInt8 should have comment or be unexported (golint)
    • Line 128: warning: exported method StrMap.GetUint should have comment or be unexported (golint)
    • Line 139: warning: exported method StrMap.GetUint64 should have comment or be unexported (golint)
    • Line 150: warning: exported method StrMap.GetUint32 should have comment or be unexported (golint)
    • Line 161: warning: exported method StrMap.GetUint16 should have comment or be unexported (golint)
    • Line 172: warning: exported method StrMap.GetUint8 should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • strmap/strmap.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/spf13/cast (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/spf13/cast (invalid package name: "") (ineffassign)
    • strmap/convert_test.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/lovego/deep (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!