Preparing report...

Report for github.com/evalphobia/go-ip-fraud-check

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


gocyclo94%

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.


golint50%

Golint is a linter for Go source code.

    • go-ip-fraud-check/provider/ipinfoio/provider_ipinfoio.go
    • Line 15: warning: exported type IPinfoioProvider should have comment or be unexported (golint)
    • Line 19: warning: exported method IPinfoioProvider.Init should have comment or be unexported (golint)
    • Line 37: warning: exported method IPinfoioProvider.CheckIP should have comment or be unexported (golint)
    • Line 97: warning: exported method IPinfoioProvider.RawCheckIP should have comment or be unexported (golint)
    • go-ip-fraud-check/ipfraudcheck/config.go
    • Line 32: warning: exported method Config.GetLogger should have comment or be unexported (golint)
    • Line 41: warning: exported method Config.GetIPdatacoAPIKey should have comment or be unexported (golint)
    • Line 49: warning: exported method Config.GetIPinfoioToken should have comment or be unexported (golint)
    • go-ip-fraud-check/ipfraudcheck/ipfraudcheck.go
    • Line 10: warning: exported type Client should have comment or be unexported (golint)
    • Line 15: warning: exported function New should have comment or be unexported (golint)
    • Line 41: warning: exported method Client.CheckIP should have comment or be unexported (golint)
    • Line 56: warning: exported type Response should have comment or be unexported (golint)
    • Line 60: warning: exported method Client.RawCheckIP should have comment or be unexported (golint)
    • go-ip-fraud-check/provider/minfraud/provider_minfraud.go
    • Line 13: warning: exported type MinFraudProvider should have comment or be unexported (golint)
    • Line 17: warning: exported method MinFraudProvider.Init should have comment or be unexported (golint)
    • Line 39: warning: exported method MinFraudProvider.CheckIP should have comment or be unexported (golint)
    • Line 73: warning: exported method MinFraudProvider.RawCheckIP should have comment or be unexported (golint)
    • go-ip-fraud-check/provider/ipdataco/provider_ipdataco.go
    • Line 14: warning: exported type IPdatacoProvider should have comment or be unexported (golint)
    • Line 18: warning: exported method IPdatacoProvider.Init should have comment or be unexported (golint)
    • Line 41: warning: exported method IPdatacoProvider.CheckIP should have comment or be unexported (golint)
    • Line 71: warning: exported method IPdatacoProvider.RawCheckIP 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!