Preparing report...

Report for github.com/DeedleFake/sips

A+    Excellent!    Found 11 issues across 15 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!


gocyclo86%

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.

    • sips/handler.go
    • Line 105: warning: cyclomatic complexity 19 of function (handler).getPins() is high (> 15) (gocyclo)

golint40%

Golint is a linter for Go source code.

    • sips/pin.go
    • Line 9: warning: exported const Queued should have comment (or a comment on this block) or be unexported (golint)
    • sips/dbs/schema.go
    • Line 7: warning: exported type User should have comment or be unexported (golint)
    • Line 13: warning: exported type Token should have comment or be unexported (golint)
    • Line 19: warning: exported type Pin should have comment or be unexported (golint)
    • sips/internal/log/log.go
    • Line 39: warning: exported function Infof should have comment or be unexported (golint)
    • Line 44: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 49: warning: exported function Fatalf should have comment or be unexported (golint)
    • sips/internal/ipfsapi/client.go
    • Line 65: warning: exported type ID should have comment or be unexported (golint)
    • Line 74: warning: exported method Client.ID should have comment or be unexported (golint)
    • Line 80: warning: exported type PinAdd should have comment or be unexported (golint)
    • Line 85: warning: exported method Client.PinAdd should have comment or be unexported (golint)
    • Line 94: warning: exported type PinLs should have comment or be unexported (golint)
    • Line 125: warning: exported method Client.PinUpdate should have comment or be unexported (golint)
    • Line 136: warning: exported method Client.PinRm should have comment or be unexported (golint)
    • Line 146: warning: exported method Client.SwarmConnect should have comment or be unexported (golint)
    • Line 153: warning: exported type ClientOption should have comment or be unexported (golint)
    • Line 171: warning: exported type PinType should have comment or be unexported (golint)
    • Line 174: warning: exported const Direct should have comment (or a comment on this block) or be unexported (golint)
    • sips/pinquery.go
    • Line 54: warning: exported const Exact should have comment (or a comment on this block) or be unexported (golint)
    • sips/cmd/sips/pinhandler.go
    • Line 18: warning: exported type PinHandler should have comment or be unexported (golint)
    • Line 23: warning: exported method PinHandler.Pins should have comment or be unexported (golint)
    • Line 65: warning: exported method PinHandler.AddPin should have comment or be unexported (golint)
    • Line 118: warning: exported method PinHandler.GetPin should have comment or be unexported (golint)
    • Line 161: warning: exported method PinHandler.UpdatePin should have comment or be unexported (golint)
    • Line 232: warning: exported method PinHandler.DeletePin should have comment or be unexported (golint)

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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!