Preparing report...

Report for github.com/textileio/go-textile

D    Needs lots of improvement    Found 112 issues across 257 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)


gocyclo91%

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.

    • go-textile/mobile/cafes.go
    • Line 511: warning: cyclomatic complexity 35 of function (*Mobile).writeCafeRequest() is high (> 15) (gocyclo)
    • Line 34: warning: cyclomatic complexity 19 of function (*Mobile).registerCafe() is high (> 15) (gocyclo)
    • go-textile/core/thread.go
    • Line 305: warning: cyclomatic complexity 20 of function (*Thread).handle() is high (> 15) (gocyclo)
    • Line 504: warning: cyclomatic complexity 20 of function (*Thread).commitNode() is high (> 15) (gocyclo)
    • go-textile/core/core.go
    • Line 317: warning: cyclomatic complexity 18 of function (*Textile).Start() is high (> 15) (gocyclo)
    • Line 156: warning: cyclomatic complexity 16 of function InitRepo() is high (> 15) (gocyclo)
    • go-textile/pb/struct.go
    • Line 115: warning: cyclomatic complexity 23 of function toValue() is high (> 15) (gocyclo)
    • Line 27: warning: cyclomatic complexity 16 of function ToValue() is high (> 15) (gocyclo)
    • go-textile/cmd/files.go
    • Line 53: warning: cyclomatic complexity 30 of function FileAdd() is high (> 15) (gocyclo)
    • Line 220: warning: cyclomatic complexity 25 of function mill() is high (> 15) (gocyclo)
    • go-textile/core/cafe_service.go
    • Line 1559: warning: cyclomatic complexity 25 of function (*CafeService).handleRequests() is high (> 15) (gocyclo)
    • Line 1455: warning: cyclomatic complexity 21 of function (*CafeService).batchRequests() is high (> 15) (gocyclo)
    • Line 115: warning: cyclomatic complexity 18 of function (*CafeService).Handle() is high (> 15) (gocyclo)
    • Line 718: warning: cyclomatic complexity 16 of function (*CafeService).handleRegistration() is high (> 15) (gocyclo)
    • go-textile/mobile/files.go
    • Line 317: warning: cyclomatic complexity 17 of function (*Mobile).buildDirectory() is high (> 15) (gocyclo)
    • Line 196: warning: cyclomatic complexity 16 of function (*Mobile).imageFileContentForMinWidth() is high (> 15) (gocyclo)

golint0%

Golint is a linter for Go source code.

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


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell96%

Misspell Finds commonly misspelled English words