Preparing report...

Report for github.com/HashCash-Consultants/go

(v1.11.0)

A+    Excellent!    Found 191 issues across 860 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!


gofmt81%

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!


gocyclo95%

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.

    • services/aurora/internal/ingest/processors/effects_processor.go
    • Line 155: warning: cyclomatic complexity 23 of function (*transactionOperationWrapper).effects() is high (> 15) (gocyclo)
    • Line 330: warning: cyclomatic complexity 21 of function (*effectsWrapper).addLedgerEntrySponsorshipEffects() is high (> 15) (gocyclo)
    • Line 518: warning: cyclomatic complexity 19 of function (*effectsWrapper).addSetOptionsEffects() is high (> 15) (gocyclo)
    • Line 268: warning: cyclomatic complexity 17 of function (*effectsWrapper).addSignerSponsorshipEffects() is high (> 15) (gocyclo)
    • tools/aurora-cmp/main.go
    • Line 96: warning: cyclomatic complexity 23 of function run() is high (> 15) (gocyclo)
    • Line 329: warning: cyclomatic complexity 18 of function addPathsFromResponse() is high (> 15) (gocyclo)
    • txnbuild/revoke_sponsorship.go
    • Line 58: warning: cyclomatic complexity 22 of function (*RevokeSponsorship).BuildXDR() is high (> 15) (gocyclo)
    • Line 225: warning: cyclomatic complexity 20 of function (*RevokeSponsorship).Validate() is high (> 15) (gocyclo)
    • xdr/xdr_generated.go
    • Line 14440: warning: cyclomatic complexity 39 of function NewOperationResultTr() is high (> 15) (gocyclo)
    • Line 9313: warning: cyclomatic complexity 37 of function NewOperationBody() is high (> 15) (gocyclo)
    • Line 7418: warning: cyclomatic complexity 30 of function NewHcnetMessage() is high (> 15) (gocyclo)
    • Line 14395: warning: cyclomatic complexity 20 of function (OperationResultTr).ArmForSwitch() is high (> 15) (gocyclo)
    • Line 9268: warning: cyclomatic complexity 20 of function (OperationBody).ArmForSwitch() is high (> 15) (gocyclo)
    • Line 15375: warning: cyclomatic complexity 17 of function NewInnerTransactionResultResult() is high (> 15) (gocyclo)
    • Line 7381: warning: cyclomatic complexity 16 of function (HcnetMessage).ArmForSwitch() is high (> 15) (gocyclo)
    • services/aurora/internal/ingest/fsm.go
    • Line 359: warning: cyclomatic complexity 20 of function (resumeState).run() is high (> 15) (gocyclo)
    • Line 641: warning: cyclomatic complexity 19 of function (reingestHistoryRangeState).run() is high (> 15) (gocyclo)
    • Line 246: warning: cyclomatic complexity 19 of function (buildState).run() is high (> 15) (gocyclo)
    • Line 130: warning: cyclomatic complexity 18 of function (startState).run() is high (> 15) (gocyclo)
    • ingest/io/change.go
    • Line 156: warning: cyclomatic complexity 17 of function (*Change).AccountSignersChanged() 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!