Preparing report...

Report for github.com/xpladev/xpla.go

(v0.1.0)

A+    Excellent!    Found 18 issues across 158 files

Tweet

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!


gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo88%

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.

    • core/gov/query_gov.go
    • Line 29: warning: cyclomatic complexity 51 of function queryByGrpcGov() is high (> 15) (gocyclo)
    • Line 329: warning: cyclomatic complexity 17 of function queryByLcdGov() is high (> 15) (gocyclo)
    • client/tx.go
    • Line 407: warning: cyclomatic complexity 25 of function (*XplaClient).createAndSignEvmTx() is high (> 15) (gocyclo)
    • Line 168: warning: cyclomatic complexity 22 of function (*XplaClient).SignTx() is high (> 15) (gocyclo)
    • Line 285: warning: cyclomatic complexity 22 of function (*XplaClient).MultiSign() is high (> 15) (gocyclo)
    • Line 28: warning: cyclomatic complexity 21 of function (*XplaClient).CreateAndSignTx() is high (> 15) (gocyclo)
    • core/ibc/query_ibc.go
    • Line 31: warning: cyclomatic complexity 57 of function queryByGrpcIbc() is high (> 15) (gocyclo)
    • Line 403: warning: cyclomatic complexity 30 of function queryByLcdIbc() is high (> 15) (gocyclo)
    • client/query.go
    • Line 31: warning: cyclomatic complexity 23 of function (*XplaClient).Query() is high (> 15) (gocyclo)
    • core/staking/query_staking.go
    • Line 27: warning: cyclomatic complexity 28 of function queryByGrpcStaking() is high (> 15) (gocyclo)
    • Line 189: warning: cyclomatic complexity 16 of function queryByLcdStaking() 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!