Preparing report...

Report for github.com/mycodeku/transtionhelper

(v0.0.0-20220616091130-e3878864019a)

A+    Excellent!    Found 56 issues across 1461 files

Tweet

gofmt99%

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo96%

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.

    • x/group/keeper/msg_server.go
    • Line 100: warning: cyclomatic complexity 20 of function (Keeper).UpdateGroupMembers() is high (> 15) (gocyclo)
    • Line 728: warning: cyclomatic complexity 18 of function (Keeper).Exec() is high (> 15) (gocyclo)
    • Line 448: warning: cyclomatic complexity 17 of function (Keeper).SubmitProposal() is high (> 15) (gocyclo)
    • simapp/export.go
    • Line 50: warning: cyclomatic complexity 18 of function (*SimApp).prepForZeroHeightGenesis() is high (> 15) (gocyclo)
    • x/staking/keeper/slash.go
    • Line 24: warning: cyclomatic complexity 17 of function (Keeper).Slash() is high (> 15) (gocyclo)
    • Line 220: warning: cyclomatic complexity 16 of function (Keeper).SlashRedelegation() is high (> 15) (gocyclo)
    • x/group/simulation/operations.go
    • Line 924: warning: cyclomatic complexity 19 of function SimulateMsgVote() is high (> 15) (gocyclo)
    • Line 822: warning: cyclomatic complexity 17 of function SimulateMsgWithdrawProposal() is high (> 15) (gocyclo)
    • x/auth/client/cli/tx_sign.go
    • Line 210: warning: cyclomatic complexity 20 of function makeSignCmd() is high (> 15) (gocyclo)
    • Line 63: warning: cyclomatic complexity 17 of function makeSignBatchCmd() is high (> 15) (gocyclo)
    • store/rootmulti/store.go
    • Line 751: warning: cyclomatic complexity 19 of function (*Store).Restore() is high (> 15) (gocyclo)
    • Line 178: warning: cyclomatic complexity 16 of function (*Store).loadVersion() is high (> 15) (gocyclo)
    • server/start.go
    • Line 230: warning: cyclomatic complexity 40 of function startInProcess() is high (> 15) (gocyclo)
    • client/cmd.go
    • Line 187: warning: cyclomatic complexity 34 of function readTxCommandFlags() is high (> 15) (gocyclo)
    • Line 90: warning: cyclomatic complexity 20 of function ReadPersistentCommandFlags() is high (> 15) (gocyclo)
    • simapp/state.go
    • Line 28: warning: cyclomatic complexity 20 of function AppStateFn() is high (> 15) (gocyclo)
    • x/staking/keeper/msg_server.go
    • Line 391: warning: cyclomatic complexity 16 of function (msgServer).CancelUnbondingDelegation() is high (> 15) (gocyclo)
    • Line 34: warning: cyclomatic complexity 16 of function (msgServer).CreateValidator() is high (> 15) (gocyclo)
    • store/v2alpha1/multi/store.go
    • Line 217: warning: cyclomatic complexity 25 of function NewStore() is high (> 15) (gocyclo)
    • Line 350: warning: cyclomatic complexity 21 of function (*prefixRegistry).migrate() is high (> 15) (gocyclo)
    • Line 717: warning: cyclomatic complexity 17 of function (*Store).Query() is high (> 15) (gocyclo)
    • Line 578: warning: cyclomatic complexity 16 of function (*Store).commit() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!