Preparing report...

Report for github.com/Evolution404/simcore

(v0.1.5)

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


gofmt97%

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!


gocyclo90%

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.

    • p2p/enr/enr.go
    • Line 237: warning: cyclomatic complexity 16 of function decodeRecord() is high (> 15) (gocyclo)
    • internal/ethapi/transaction_args.go
    • Line 77: warning: cyclomatic complexity 29 of function (*TransactionArgs).setDefaults() is high (> 15) (gocyclo)
    • Line 178: warning: cyclomatic complexity 17 of function (*TransactionArgs).ToMessage() is high (> 15) (gocyclo)
    • p2p/dial.go
    • Line 253: warning: cyclomatic complexity 23 of function (*dialScheduler).loop() is high (> 15) (gocyclo)
    • p2p/server.go
    • Line 865: warning: cyclomatic complexity 20 of function (*Server).run() is high (> 15) (gocyclo)
    • Line 681: warning: cyclomatic complexity 16 of function (*Server).setupDiscovery() is high (> 15) (gocyclo)
    • simulations/network_test.go
    • Line 22: warning: cyclomatic complexity 49 of function TestSnapshot() is high (> 15) (gocyclo)
    • Line 273: warning: cyclomatic complexity 19 of function TestNetworkSimulation() is high (> 15) (gocyclo)
    • simulations/http_test.go
    • Line 580: warning: cyclomatic complexity 33 of function TestHTTPSnapshot() is high (> 15) (gocyclo)
    • Line 461: warning: cyclomatic complexity 16 of function (*expectEvents).expect() is high (> 15) (gocyclo)
    • internal/ethapi/api.go
    • Line 997: warning: cyclomatic complexity 31 of function DoEstimateGas() is high (> 15) (gocyclo)
    • Line 1860: warning: cyclomatic complexity 17 of function (*PublicTransactionPoolAPI).Resend() is high (> 15) (gocyclo)

license0%

Checks whether your project has a LICENSE file.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!