Preparing report...

Report for github.com/CESSProject/cess-miner

(v0.7.10)

A+    Excellent!    Found 12 issues across 42 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo71%

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.

    • node/pois.go
    • Line 215: warning: cyclomatic complexity 60 of function (*Node).certifiedSpace() is high (> 15) (gocyclo)
    • node/chall_idle.go
    • Line 409: warning: cyclomatic complexity 46 of function (*Node).checkIdleProofRecord() is high (> 15) (gocyclo)
    • Line 53: warning: cyclomatic complexity 40 of function (*Node).idleChallenge() is high (> 15) (gocyclo)
    • node/restore.go
    • Line 337: warning: cyclomatic complexity 28 of function (*Node).restoreAFragment() is high (> 15) (gocyclo)
    • Line 482: warning: cyclomatic complexity 27 of function (*Node).claimNoExitOrder() is high (> 15) (gocyclo)
    • Line 126: warning: cyclomatic complexity 27 of function (*Node).restoreFragment() is high (> 15) (gocyclo)
    • node/calc_tag.go
    • Line 508: warning: cyclomatic complexity 26 of function (*Node).reportFileTag() is high (> 15) (gocyclo)
    • Line 78: warning: cyclomatic complexity 25 of function (*Node).calcFileTag() is high (> 15) (gocyclo)
    • node/node.go
    • Line 68: warning: cyclomatic complexity 21 of function (*Node).Run() is high (> 15) (gocyclo)
    • cmd/console/run.go
    • Line 48: warning: cyclomatic complexity 120 of function runCmd() is high (> 15) (gocyclo)
    • Line 753: warning: cyclomatic complexity 81 of function buildConfigFile() is high (> 15) (gocyclo)
    • Line 1123: warning: cyclomatic complexity 23 of function buildAuthenticationConfig() is high (> 15) (gocyclo)
    • node/replace.go
    • Line 29: warning: cyclomatic complexity 49 of function (*Node).replaceIdle() is high (> 15) (gocyclo)
    • node/chall_service.go
    • Line 239: warning: cyclomatic complexity 39 of function (*Node).calcSigma() is high (> 15) (gocyclo)
    • Line 429: warning: cyclomatic complexity 31 of function (*Node).checkServiceProofRecord() is high (> 15) (gocyclo)
    • Line 50: warning: cyclomatic complexity 23 of function (*Node).serviceChallenge() is high (> 15) (gocyclo)
    • node/challenge.go
    • Line 16: warning: cyclomatic complexity 22 of function (*Node).challengeMgt() 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!


misspell97%

Misspell Finds commonly misspelled English words