Preparing report...

Report for github.com/mpolden/echoip

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

    • echoip/iputil/iputil.go
    • Line 11: warning: exported function LookupAddr should have comment or be unexported (golint)
    • Line 20: warning: exported function LookupPort should have comment or be unexported (golint)
    • Line 30: warning: exported function ToDecimal should have comment or be unexported (golint)
    • echoip/http/cache.go
    • Line 11: warning: exported type Cache should have comment or be unexported (golint)
    • Line 19: warning: exported type CacheStats should have comment or be unexported (golint)
    • Line 25: warning: exported function NewCache should have comment or be unexported (golint)
    • Line 42: warning: exported method Cache.Set should have comment or be unexported (golint)
    • Line 69: warning: exported method Cache.Get should have comment or be unexported (golint)
    • Line 80: warning: exported method Cache.Resize should have comment or be unexported (golint)
    • Line 91: warning: exported method Cache.Stats should have comment or be unexported (golint)
    • echoip/http/http.go
    • Line 29: warning: exported type Server should have comment or be unexported (golint)
    • Line 40: warning: exported type Response should have comment or be unexported (golint)
    • Line 60: warning: exported type PortResponse should have comment or be unexported (golint)
    • Line 66: warning: exported function New should have comment or be unexported (golint)
    • Line 189: warning: exported method Server.CLIHandler should have comment or be unexported (golint)
    • Line 198: warning: exported method Server.CLICountryHandler should have comment or be unexported (golint)
    • Line 207: warning: exported method Server.CLICountryISOHandler should have comment or be unexported (golint)
    • Line 216: warning: exported method Server.CLICityHandler should have comment or be unexported (golint)
    • Line 225: warning: exported method Server.CLICoordinatesHandler should have comment or be unexported (golint)
    • Line 234: warning: exported method Server.CLIASNHandler should have comment or be unexported (golint)
    • Line 243: warning: exported method Server.JSONHandler should have comment or be unexported (golint)
    • Line 257: warning: exported method Server.HealthHandler should have comment or be unexported (golint)
    • Line 263: warning: exported method Server.PortHandler should have comment or be unexported (golint)
    • Line 321: warning: exported method Server.DefaultHandler should have comment or be unexported (golint)
    • Line 362: warning: exported function NotFoundHandler should have comment or be unexported (golint)
    • Line 414: warning: exported method Server.Handler should have comment or be unexported (golint)
    • Line 460: warning: exported method Server.ListenAndServe should have comment or be unexported (golint)
    • echoip/iputil/geo/geo.go
    • Line 10: warning: exported type Reader should have comment or be unexported (golint)
    • Line 17: warning: exported type Country should have comment or be unexported (golint)
    • Line 23: warning: exported type City should have comment or be unexported (golint)
    • Line 34: warning: exported type ASN should have comment or be unexported (golint)
    • Line 45: warning: exported function Open should have comment or be unexported (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!