Preparing report...

Report for github.com/gjbae1212/go-geoip2

B    Not bad!    Found 5 issues across 6 files

Tweet

gofmt50%

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!


gocyclo83%

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.

    • go-geoip2/reader.go
    • Line 176: warning: cyclomatic complexity 17 of function (*downloadReader).databaseReload() is high (> 15) (gocyclo)

golint50%

Golint is a linter for Go source code.

    • go-geoip2/geoip2.go
    • Line 13: warning: exported type MaxmindDownloadSuffix should have comment or be unexported (golint)
    • Line 16: warning: exported const MaxmindDownloadFormat should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported var ErrInvalidParameters should have comment or be unexported (golint)
    • Line 27: warning: comment on exported type Reader should be of the form "Reader ..." (with optional leading article) (golint)
    • Line 125: warning: comment on exported function MaxmindDownloadURL should be of the form "MaxmindDownloadURL ..." (golint)
    • go-geoip2/option.go
    • Line 8: warning: exported type DownloadOption should have comment or be unexported (golint)
    • Line 12: warning: exported type DownloadOptionFunc should have comment or be unexported (golint)
    • Line 50: warning: comment on exported function WithRetries should be of the form "WithRetries ..." (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!