Preparing report...

Report for github.com/prologic/fbox

A    Great!    Found 6 issues across 10 files

Tweet

gofmt90%

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!


gocyclo90%

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.

    • fbox/main.go
    • Line 99: warning: cyclomatic complexity 16 of function main() is high (> 15) (gocyclo)

golint50%

Golint is a linter for Go source code.

    • fbox/store/remote_store.go
    • Line 16: warning: exported function NewRemoteStore should have comment or be unexported (golint)
    • Line 24: warning: exported method RemoteStore.Put should have comment or be unexported (golint)
    • Line 24: warning: receiver name r should be consistent with previous receiver name s for RemoteStore (golint)
    • Line 49: warning: exported method RemoteStore.Get should have comment or be unexported (golint)
    • Line 49: warning: receiver name r should be consistent with previous receiver name s for RemoteStore (golint)
    • Line 73: warning: exported method RemoteStore.Delete should have comment or be unexported (golint)
    • Line 73: warning: receiver name r should be consistent with previous receiver name s for RemoteStore (golint)
    • Line 98: warning: receiver name r should be consistent with previous receiver name s for RemoteStore (golint)
    • fbox/metadata.go
    • Line 22: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 36: warning: exported function NewMetadata should have comment or be unexported (golint)
    • Line 40: warning: exported method Metadata.DataShards should have comment or be unexported (golint)
    • Line 44: warning: exported method Metadata.ParityShards should have comment or be unexported (golint)
    • Line 48: warning: exported method Metadata.Bytes should have comment or be unexported (golint)
    • fbox/utils.go
    • Line 298: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • fbox/blob/handler.go
    • Line 15: warning: exported type Handler should have comment or be unexported (golint)
    • Line 19: warning: exported function NewHandler should have comment or be unexported (golint)
    • fbox/store/disk_store.go
    • Line 16: warning: exported function NewDiskStore should have comment or be unexported (golint)
    • Line 24: warning: exported method DiskStore.Put should have comment or be unexported (golint)
    • Line 39: warning: exported method DiskStore.Get should have comment or be unexported (golint)
    • Line 47: warning: exported method DiskStore.Delete 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!


misspell80%

Misspell Finds commonly misspelled English words

    • fbox/main.go
    • Line 92: warning: "recieved" is a misspelling of "received" (misspell)
    • Line 93: warning: "recieved" is a misspelling of "received" (misspell)