Preparing report...

Report for github.com/ssbc/go-ssb

(v0.2.1)

A+    Excellent!    Found 71 issues across 283 files

Tweet

gofmt96%

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


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!


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.

    • sbot/fsck.go
    • Line 226: warning: cyclomatic complexity 18 of function sequenceFSCK() is high (> 15) (gocyclo)
    • sbot/new.go
    • Line 167: warning: cyclomatic complexity 75 of function New() is high (> 15) (gocyclo)
    • graph/builder.go
    • Line 336: warning: cyclomatic complexity 20 of function (*BadgerBuilder).recurseHops() is high (> 15) (gocyclo)
    • Line 115: warning: cyclomatic complexity 19 of function (*BadgerBuilder).Build() is high (> 15) (gocyclo)
    • multilogs/combined.go
    • Line 201: warning: cyclomatic complexity 22 of function (*CombinedIndex).update() is high (> 15) (gocyclo)
    • Line 434: warning: cyclomatic complexity 17 of function getBoxedContent() is high (> 15) (gocyclo)
    • message/legacy/encode.go
    • Line 86: warning: cyclomatic complexity 21 of function (*prettyPrinter).formatObject() is high (> 15) (gocyclo)
    • Line 14: warning: cyclomatic complexity 17 of function (*prettyPrinter).formatArray() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell82%

Misspell Finds commonly misspelled English words

    • ebt.go
    • Line 25: warning: "controlls" is a misspelling of "controls" (misspell)
    • network/new.go
    • Line 46: warning: "usefull" is a misspelling of "useful" (misspell)
    • Line 49: warning: "usefull" is a misspelling of "useful" (misspell)
    • sbot/new.go
    • Line 450: warning: "lenghts" is a misspelling of "lengths" (misspell)
    • Line 739: warning: "managment" is a misspelling of "management" (misspell)
    • private/manager.go
    • Line 98: warning: "preperation" is a misspelling of "preparation" (misspell)
    • Line 202: warning: "managment" is a misspelling of "management" (misspell)
    • sbot/options.go
    • Line 257: warning: "expectes" is a misspelling of "expects" (misspell)
    • Line 305: warning: "Usefull" is a misspelling of "Useful" (misspell)
    • Line 314: warning: "Usefull" is a misspelling of "Useful" (misspell)
    • Line 314: warning: "insepct" is a misspelling of "inspect" (misspell)
    • Line 421: warning: "usefull" is a misspelling of "useful" (misspell)
    • sbot.go
    • Line 60: warning: "Statuser" is a misspelling of "Stature" (misspell)
    • Line 61: warning: "Statuser" is a misspelling of "Stature" (misspell)
    • message/publish.go
    • Line 31: warning: "creater" is a misspelling of "creature" (misspell)
    • Line 65: warning: "retreive" is a misspelling of "retrieve" (misspell)
    • Line 70: warning: "retreive" is a misspelling of "retrieve" (misspell)
    • Line 93: warning: "retreive" is a misspelling of "retrieve" (misspell)
    • Line 182: warning: "creater" is a misspelling of "creature" (misspell)
    • Line 198: warning: "creater" is a misspelling of "creature" (misspell)
    • Line 204: warning: "creater" is a misspelling of "creature" (misspell)