Preparing report...

Report for github.com/IBAX-io/go-ibax

(v0.0.0-20220407114418-18bffc419b16)

A+    Excellent!    Found 30 issues across 358 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!


gocyclo91%

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.

    • packages/api/list.go
    • Line 227: warning: cyclomatic complexity 17 of function getnodeListWhereHandler() is high (> 15) (gocyclo)
    • Line 134: warning: cyclomatic complexity 17 of function getListWhereHandler() is high (> 15) (gocyclo)
    • packages/smart/smart_p.go
    • Line 78: warning: cyclomatic complexity 37 of function UpdatePlatformParam() is high (> 15) (gocyclo)
    • Line 397: warning: cyclomatic complexity 20 of function CreateEcosystem() is high (> 15) (gocyclo)
    • packages/smart/smart.go
    • Line 327: warning: cyclomatic complexity 30 of function (*SmartContract).AccessColumns() is high (> 15) (gocyclo)
    • Line 536: warning: cyclomatic complexity 27 of function (*SmartContract).CallContract() is high (> 15) (gocyclo)
    • packages/script/runtime.go
    • Line 567: warning: cyclomatic complexity 226 of function (*RunTime).RunCode() is high (> 15) (gocyclo)
    • Line 126: warning: cyclomatic complexity 42 of function (*RunTime).callFunc() is high (> 15) (gocyclo)
    • Line 390: warning: cyclomatic complexity 18 of function valueToBool() is high (> 15) (gocyclo)
    • packages/smart/funcs.go
    • Line 943: warning: cyclomatic complexity 24 of function DBSelect() is high (> 15) (gocyclo)
    • Line 1929: warning: cyclomatic complexity 21 of function GetHistoryRaw() is high (> 15) (gocyclo)
    • Line 716: warning: cyclomatic complexity 19 of function parseViewWhereSql() is high (> 15) (gocyclo)
    • Line 1267: warning: cyclomatic complexity 18 of function TableConditions() is high (> 15) (gocyclo)
    • Line 1209: warning: cyclomatic complexity 18 of function columnConditions() is high (> 15) (gocyclo)
    • Line 2082: warning: cyclomatic complexity 17 of function TransactionData() is high (> 15) (gocyclo)
    • Line 2173: warning: cyclomatic complexity 17 of function DelColumn() is high (> 15) (gocyclo)
    • Line 1725: warning: cyclomatic complexity 17 of function UpdateNodesBan() is high (> 15) (gocyclo)
    • Line 811: warning: cyclomatic complexity 16 of function CreateTable() is high (> 15) (gocyclo)
    • packages/template/funcs.go
    • Line 580: warning: cyclomatic complexity 73 of function dbfindTag() is high (> 15) (gocyclo)
    • Line 501: warning: cyclomatic complexity 16 of function dataTag() is high (> 15) (gocyclo)
    • Line 245: warning: cyclomatic complexity 16 of function forlistTag() is high (> 15) (gocyclo)
    • packages/api/api_test.go
    • Line 533: warning: cyclomatic complexity 21 of function postSignTxResult() is high (> 15) (gocyclo)
    • Line 333: warning: cyclomatic complexity 21 of function postTxResult() is high (> 15) (gocyclo)
    • Line 623: warning: cyclomatic complexity 21 of function postTxResult2() is high (> 15) (gocyclo)
    • Line 425: warning: cyclomatic complexity 18 of function postTxResultMultipart() is high (> 15) (gocyclo)
    • packages/script/compile.go
    • Line 450: warning: cyclomatic complexity 141 of function (*VM).compileEval() is high (> 15) (gocyclo)
    • Line 100: warning: cyclomatic complexity 30 of function (*VM).CompileBlock() is high (> 15) (gocyclo)
    • Line 328: warning: cyclomatic complexity 26 of function (*VM).getInitMap() is high (> 15) (gocyclo)
    • packages/converter/converter.go
    • Line 276: warning: cyclomatic complexity 26 of function BinUnmarshalBuff() is high (> 15) (gocyclo)
    • Line 372: warning: cyclomatic complexity 23 of function BinUnmarshal() is high (> 15) (gocyclo)
    • Line 217: warning: cyclomatic complexity 18 of function BinMarshal() is high (> 15) (gocyclo)
    • packages/template/calculate.go
    • Line 47: warning: cyclomatic complexity 20 of function parsing() is high (> 15) (gocyclo)
    • Line 228: warning: cyclomatic complexity 19 of function calculate() is high (> 15) (gocyclo)
    • Line 124: warning: cyclomatic complexity 19 of function calcExp() is high (> 15) (gocyclo)
    • packages/template/template.go
    • Line 480: warning: cyclomatic complexity 60 of function getFunc() is high (> 15) (gocyclo)
    • Line 344: warning: cyclomatic complexity 46 of function callFunc() is high (> 15) (gocyclo)
    • Line 122: warning: cyclomatic complexity 31 of function setAllAttr() is high (> 15) (gocyclo)
    • Line 756: warning: cyclomatic complexity 20 of function splitArray() is high (> 15) (gocyclo)
    • Line 214: warning: cyclomatic complexity 18 of function ifValue() 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!