Preparing report...

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

(v0.0.0-20230328062913-450925eb3d5d)

A+    Excellent!    Found 32 issues across 123 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!


gofmt90%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo81%

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.

    • models/LogTransaction.go
    • Line 72: warning: cyclomatic complexity 25 of function (*LogTransaction).GetBlockTransactions() is high (> 15) (gocyclo)
    • Line 502: warning: cyclomatic complexity 20 of function (*LogTransaction).GetEcosystemAccountTransaction() is high (> 15) (gocyclo)
    • models/honor_node_info.go
    • Line 98: warning: cyclomatic complexity 20 of function InsertHonorNodeInfo() is high (> 15) (gocyclo)
    • Line 209: warning: cyclomatic complexity 20 of function syncNodeDisplayStatus() is high (> 15) (gocyclo)
    • Line 391: warning: cyclomatic complexity 16 of function FindNodeLocatedSave() is high (> 15) (gocyclo)
    • models/time.go
    • Line 34: warning: cyclomatic complexity 20 of function GetDateDiffFromNow() is high (> 15) (gocyclo)
    • models/transaction_relation.go
    • Line 237: warning: cyclomatic complexity 24 of function (*txRelationInfo).getTransactionRelation() is high (> 15) (gocyclo)
    • Line 152: warning: cyclomatic complexity 18 of function txRelationSync() is high (> 15) (gocyclo)
    • models/parameters.go
    • Line 58: warning: cyclomatic complexity 16 of function (*StateParameter).GetMintAmount() is high (> 15) (gocyclo)
    • models/blockInfo.go
    • Line 126: warning: cyclomatic complexity 19 of function GetBlocksDetailedInfoHexByScanOut() is high (> 15) (gocyclo)
    • models/history.go
    • Line 297: warning: cyclomatic complexity 67 of function (*History).GetExplorer() is high (> 15) (gocyclo)
    • Line 1484: warning: cyclomatic complexity 17 of function GetAmountChangeBarChart() is high (> 15) (gocyclo)
    • models/ecosystems.go
    • Line 463: warning: cyclomatic complexity 61 of function GetEcosystemDetailInfo() is high (> 15) (gocyclo)
    • Line 282: warning: cyclomatic complexity 45 of function (*Ecosystem).GetEcoSystemList() is high (> 15) (gocyclo)
    • Line 843: warning: cyclomatic complexity 18 of function GetEcosystemApp() is high (> 15) (gocyclo)
    • Line 770: warning: cyclomatic complexity 18 of function GetEcosystemDatabase() is high (> 15) (gocyclo)
    • models/daily_active_report.go
    • Line 781: warning: cyclomatic complexity 22 of function getTimeLineThreeMonthActiveReport() is high (> 15) (gocyclo)
    • Line 301: warning: cyclomatic complexity 20 of function GetDailyActiveReportList() is high (> 15) (gocyclo)
    • Line 102: warning: cyclomatic complexity 19 of function InsertDailyActiveReport() is high (> 15) (gocyclo)
    • Line 598: warning: cyclomatic complexity 16 of function getOneMonthYearActiveReport() is high (> 15) (gocyclo)
    • models/keys.go
    • Line 264: warning: cyclomatic complexity 25 of function (*Key).GetKeyDetail() is high (> 15) (gocyclo)
    • Line 660: warning: cyclomatic complexity 21 of function (*Key).GetAccountList() is high (> 15) (gocyclo)
    • Line 808: warning: cyclomatic complexity 18 of function (*Key).GetEcosystemTokenSymbolList() is high (> 15) (gocyclo)
    • Line 1125: warning: cyclomatic complexity 16 of function GetAccountTotalAmount() is high (> 15) (gocyclo)
    • Line 516: warning: cyclomatic complexity 16 of function (*Key).GetWalletTotalEcosystem() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words