Preparing report...

Report for github.com/canopy-network/canopy

(v0.0.0-20241223140539-ec55d624f53c)

A+    Excellent!    Found 11 issues across 121 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!


gocyclo93%

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.

    • fsm/message.go
    • Line 83: warning: cyclomatic complexity 18 of function (*StateMachine).GetAuthorizedSignersFor() is high (> 15) (gocyclo)
    • Line 344: warning: cyclomatic complexity 16 of function (*StateMachine).HandleMessageCertificateResults() is high (> 15) (gocyclo)
    • bft/vote.go
    • Line 120: warning: cyclomatic complexity 18 of function (*BFT).handleHighQCVDFAndEvidence() is high (> 15) (gocyclo)
    • fsm/genesis.go
    • Line 66: warning: cyclomatic complexity 17 of function (*StateMachine).ValidateGenesisState() is high (> 15) (gocyclo)
    • fsm/types/gov.go
    • Line 261: warning: cyclomatic complexity 16 of function (*ValidatorParams).Check() is high (> 15) (gocyclo)
    • bft/msg.go
    • Line 53: warning: cyclomatic complexity 22 of function (*BFT).CheckProposerMessage() is high (> 15) (gocyclo)
    • lib/certificate.go
    • Line 35: warning: cyclomatic complexity 20 of function (*QuorumCertificate).CheckBasic() is high (> 15) (gocyclo)
    • lib/block.go
    • Line 18: warning: cyclomatic complexity 18 of function (*BlockHeader).Check() is high (> 15) (gocyclo)

license0%

Checks whether your project has a LICENSE file.


misspell98%

Misspell Finds commonly misspelled English words

    • fsm/message_test.go
    • Line 248: warning: "accomodate" is a misspelling of "accommodate" (misspell)
    • Line 283: warning: "accomodate" is a misspelling of "accommodate" (misspell)