Preparing report...

Report for github.com/Shivam010/go-freeGeoIP

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


golint40%

Golint is a linter for Go source code.

    • go-freeGeoIP/custom.go
    • Line 15: warning: don't use MixedCaps in package name; freeGeoIP should be freegeoip (golint)
    • Line 27: warning: exported function ParseIP should have comment or be unexported (golint)
    • Line 31: warning: exported method IP.Net should have comment or be unexported (golint)
    • Line 42: warning: exported method IP.UnmarshalJSON should have comment or be unexported (golint)
    • Line 51: warning: exported method IP.MarshalJSON should have comment or be unexported (golint)
    • Line 58: warning: exported function LocationF should have comment or be unexported (golint)
    • Line 66: warning: exported method Location.Time should have comment or be unexported (golint)
    • Line 82: warning: exported method Location.UnmarshalJSON should have comment or be unexported (golint)
    • Line 98: warning: exported method Location.MarshalJSON should have comment or be unexported (golint)
    • go-freeGeoIP/error.go
    • Line 15: warning: don't use MixedCaps in package name; freeGeoIP should be freegeoip (golint)
    • Line 23: warning: exported const ErrInternal should have comment (or a comment on this block) or be unexported (golint)
    • go-freeGeoIP/main.go
    • Line 15: warning: don't use MixedCaps in package name; freeGeoIP should be freegeoip (golint)
    • Line 30: warning: exported const Endpoint should have comment (or a comment on this block) or be unexported (golint)
    • go-freeGeoIP/response.go
    • Line 15: warning: don't use MixedCaps in package name; freeGeoIP should be freegeoip (golint)
    • Line 41: warning: exported function Decoder should have comment or be unexported (golint)
    • Line 55: warning: exported type Response should have comment or be unexported (golint)
    • Line 69: warning: exported type MetaInfo should have comment or be unexported (golint)
    • go-freeGeoIP/cache.go
    • Line 15: warning: don't use MixedCaps in package name; freeGeoIP should be freegeoip (golint)
    • Line 51: warning: comment on exported const NoCacheExpiration should be of the form "NoCacheExpiration ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!