Preparing report...

Report for github.com/mosaicnetworks/babble

D    Needs lots of improvement    Found 15 issues across 134 files

Tweet

gofmt99%

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


go_vet0%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

An error occurred while running this test (exit status 2)


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.

    • babble/src/node/core_test.go
    • Line 788: warning: cyclomatic complexity 27 of function TestCoreFastForwardAfterJoin() is high (> 15) (gocyclo)
    • Line 492: warning: cyclomatic complexity 22 of function TestCoreFastForward() is high (> 15) (gocyclo)
    • Line 176: warning: cyclomatic complexity 19 of function TestSync() is high (> 15) (gocyclo)
    • babble/src/hashgraph/hashgraph.go
    • Line 875: warning: cyclomatic complexity 26 of function (*Hashgraph).DecideFame() is high (> 15) (gocyclo)
    • Line 1184: warning: cyclomatic complexity 20 of function (*Hashgraph).GetFrame() is high (> 15) (gocyclo)
    • Line 1002: warning: cyclomatic complexity 18 of function (*Hashgraph).DecideRoundReceived() is high (> 15) (gocyclo)
    • Line 1100: warning: cyclomatic complexity 16 of function (*Hashgraph).ProcessDecidedRounds() is high (> 15) (gocyclo)
    • Line 807: warning: cyclomatic complexity 16 of function (*Hashgraph).DivideRounds() is high (> 15) (gocyclo)
    • babble/src/hashgraph/hashgraph_test.go
    • Line 1714: warning: cyclomatic complexity 34 of function TestResetFromFrame() is high (> 15) (gocyclo)
    • Line 434: warning: cyclomatic complexity 27 of function TestInsertEvent() is high (> 15) (gocyclo)
    • Line 1559: warning: cyclomatic complexity 25 of function TestGetFrame() is high (> 15) (gocyclo)
    • Line 1424: warning: cyclomatic complexity 20 of function TestProcessDecidedRounds() is high (> 15) (gocyclo)

golint0%

Golint is a linter for Go source code.

An error occurred while running this test (signal: killed)


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 3)