Preparing report...

Report for github.com/peggyjv/sommelier

A+    Excellent!    Found 17 issues across 85 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!


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.


golint85%

Golint is a linter for Go source code.

    • sommelier/x/il/keeper/keeper.go
    • Line 160: warning: exported method Keeper.GetInvalidationID should have comment or be unexported (golint)
    • Line 170: warning: exported method Keeper.SetInvalidationID should have comment or be unexported (golint)
    • sommelier/x/il/types/keys.go
    • Line 46: warning: comment on exported function LPAddressFromStoplossKey should be of the form "LPAddressFromStoplossKey ..." (golint)
    • Line 55: warning: comment on exported function SplitSubmittedStoplossKey should be of the form "SplitSubmittedStoplossKey ..." (golint)
    • sommelier/x/il/types/redeem.go
    • Line 25: warning: comment on exported function NewRedeemLiquidityETHCall should be of the form "NewRedeemLiquidityETHCall ..." (golint)
    • Line 79: warning: exported function NewRedeemLiquidityCall should have comment or be unexported (golint)
    • Line 115: warning: comment on exported type SimpleLogicBatch should be of the form "SimpleLogicBatch ..." (with optional leading article) (golint)
    • sommelier/x/il/client/cli/tx.go
    • Line 34: warning: comment on exported function GetCmdCreateStoploss should be of the form "GetCmdCreateStoploss ..." (golint)
    • Line 85: warning: comment on exported function GetCmdDeleteStoploss should be of the form "GetCmdDeleteStoploss ..." (golint)
    • sommelier/app/genesis.go
    • Line 7: warning: comment on exported type GenesisState should be of the form "GenesisState ..." (with optional leading article) (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!


misspell98%

Misspell Finds commonly misspelled English words