Preparing report...

Report for github.com/trebuchet-org/treb-cli

(v0.0.0-20250601175539-4ce9a22b3306)

A+    Excellent!    Found 18 issues across 66 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!


gocyclo72%

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.

    • cli/cmd/list.go
    • Line 98: warning: cyclomatic complexity 21 of function displayTableFormat() is high (> 15) (gocyclo)
    • cli/pkg/verification/manager.go
    • Line 100: warning: cyclomatic complexity 18 of function (*Manager).verifyOnEtherscanWithDebug() is high (> 15) (gocyclo)
    • Line 172: warning: cyclomatic complexity 16 of function (*Manager).verifyOnSourceifyWithDebug() is high (> 15) (gocyclo)
    • Line 335: warning: cyclomatic complexity 16 of function getNetworkName() is high (> 15) (gocyclo)
    • cli/cmd/show.go
    • Line 95: warning: cyclomatic complexity 25 of function displayDeployment() is high (> 15) (gocyclo)
    • cli/pkg/abi/decoder.go
    • Line 94: warning: cyclomatic complexity 19 of function (*TransactionDecoder).DecodeTransaction() is high (> 15) (gocyclo)
    • cli/cmd/verify.go
    • Line 256: warning: cyclomatic complexity 46 of function verifySpecificContract() is high (> 15) (gocyclo)
    • Line 91: warning: cyclomatic complexity 36 of function verifyAllContracts() is high (> 15) (gocyclo)
    • cli/pkg/script/executor.go
    • Line 333: warning: cyclomatic complexity 23 of function (*Executor).debugParseOutput() is high (> 15) (gocyclo)
    • Line 57: warning: cyclomatic complexity 16 of function (*Executor).Run() is high (> 15) (gocyclo)
    • cli/cmd/sync.go
    • Line 74: warning: cyclomatic complexity 19 of function syncPendingSafeTransactions() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!