Preparing report...

Report for github.com/polyrabbit/my-token

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


golint44%

Golint is a linter for Go source code.

    • my-token/exchange/registry.go
    • Line 15: warning: exported type ExchangeClient should have comment or be unexported (golint)
    • Line 20: warning: exported type ExchangeClientProvider should have comment or be unexported (golint)
    • Line 24: warning: exported function Register should have comment or be unexported (golint)
    • Line 28: warning: exported type Registry should have comment or be unexported (golint)
    • Line 34: warning: exported function NewRegistry should have comment or be unexported (golint)
    • Line 49: warning: exported method Registry.GetAllNames should have comment or be unexported (golint)
    • Line 54: warning: exported method Registry.GetSymbolPrices should have comment or be unexported (golint)
    • my-token/config/model.go
    • Line 6: warning: exported const ColumnSymbol should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type PriceQuery should have comment or be unexported (golint)
    • Line 24: warning: exported type Config should have comment or be unexported (golint)
    • Line 33: warning: exported method Config.GroupQueryByExchange should have comment or be unexported (golint)
    • my-token/http/http.go
    • Line 13: warning: exported type Client should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 44: warning: exported method Client.Get should have comment or be unexported (golint)
    • Line 73: warning: exported type ResponseError should have comment or be unexported (golint)
    • Line 82: warning: exported type RequestOption should have comment or be unexported (golint)
    • Line 84: warning: exported type RequestOptions should have comment or be unexported (golint)
    • Line 89: warning: exported function WithQuery should have comment or be unexported (golint)
    • Line 95: warning: exported function WithHeader should have comment or be unexported (golint)
    • Line 109: warning: exported method RequestOptions.AppendQuery should have comment or be unexported (golint)
    • Line 125: warning: exported method RequestOptions.SetHeader should have comment or be unexported (golint)
    • my-token/exchange/bigone.go
    • Line 51: warning: exported function NewBigOneClient should have comment or be unexported (golint)
    • Line 69: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • my-token/config/config.go
    • Line 21: warning: exported function Parse should have comment or be unexported (golint)
    • Line 145: warning: exported function ListExchangesAndExit should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!