Preparing report...

Report for github.com/extrame/gocryptotrader

A+    Excellent!    Found 26 issues across 203 files

Tweet

gofmt96%

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!


gocyclo92%

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.

    • gocryptotrader/config/config.go
    • Line 212: warning: cyclomatic complexity 25 of function (*Config).CheckCommunicationsConfig() is high (> 15) (gocyclo)
    • Line 466: warning: cyclomatic complexity 22 of function (*Config).CheckExchangeConfigValues() is high (> 15) (gocyclo)
    • Line 543: warning: cyclomatic complexity 17 of function (*Config).CheckCurrencyConfigValues() is high (> 15) (gocyclo)

golint97%

Golint is a linter for Go source code.

    • gocryptotrader/currency/pair/pair.go
    • Line 13: warning: comment on exported function LowerCurrencyItem should be of the form "LowerCurrencyItem ..." (golint)
    • Line 18: warning: comment on exported function UpperCurrencyItem should be of the form "UpperCurrencyItem ..." (golint)
    • gocryptotrader/grpcserver.go
    • Line 20: warning: exported type Server should have comment or be unexported (golint)
    • Line 24: warning: exported method Server.GetTickers should have comment or be unexported (golint)
    • Line 29: warning: exported method Server.GetTicker should have comment or be unexported (golint)
    • Line 33: warning: exported method Server.UpdateTicker should have comment or be unexported (golint)
    • gocryptotrader/grpc/currencies.go
    • Line 9: warning: exported type InfluxContext should have comment or be unexported (golint)
    • Line 14: warning: exported method AllEnabledExchangeCurrencies.StoreInInflux should have comment or be unexported (golint)
    • Line 39: warning: exported method UpdateTickerReport.StoreInInflux should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words