Preparing report...

Report for git.mills.io/prologic/fbox

A+    Excellent!    Found 12 issues across 17 files

Tweet

gofmt94%

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!


gocyclo94%

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.


golint41%

Golint is a linter for Go source code.

    • /git.mills.io/prologic/fbox/store/disk_store.go
    • Line 16: warning: exported function NewDiskStore should have comment or be unexported (golint)
    • Line 24: warning: exported method DiskStore.Stats should have comment or be unexported (golint)
    • Line 42: warning: exported method DiskStore.Put should have comment or be unexported (golint)
    • Line 57: warning: exported method DiskStore.Get should have comment or be unexported (golint)
    • Line 65: warning: exported method DiskStore.Delete should have comment or be unexported (golint)
    • /git.mills.io/prologic/fbox/metadata.go
    • Line 19: warning: exported type Shard should have comment or be unexported (golint)
    • Line 24: warning: exported method Shard.URI should have comment or be unexported (golint)
    • Line 29: warning: exported type ShardMap should have comment or be unexported (golint)
    • Line 31: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 45: warning: exported function NewMetadata should have comment or be unexported (golint)
    • Line 56: warning: exported method Metadata.DataShards should have comment or be unexported (golint)
    • Line 60: warning: exported method Metadata.ParityShards should have comment or be unexported (golint)
    • Line 64: warning: exported method Metadata.Bytes should have comment or be unexported (golint)
    • /git.mills.io/prologic/fbox/store/remote_store.go
    • Line 16: warning: exported function NewRemoteStore should have comment or be unexported (golint)
    • Line 24: warning: exported method RemoteStore.Stats should have comment or be unexported (golint)
    • Line 32: warning: exported method RemoteStore.Put should have comment or be unexported (golint)
    • Line 32: warning: receiver name r should be consistent with previous receiver name s for RemoteStore (golint)
    • Line 57: warning: exported method RemoteStore.Get should have comment or be unexported (golint)
    • Line 57: warning: receiver name r should be consistent with previous receiver name s for RemoteStore (golint)
    • Line 81: warning: exported method RemoteStore.Delete should have comment or be unexported (golint)
    • Line 81: warning: receiver name r should be consistent with previous receiver name s for RemoteStore (golint)
    • Line 106: warning: receiver name r should be consistent with previous receiver name s for RemoteStore (golint)
    • /git.mills.io/prologic/fbox/store/stats.go
    • Line 3: warning: exported type Stats should have comment or be unexported (golint)
    • Line 9: warning: exported method Stats.Free should have comment or be unexported (golint)
    • Line 13: warning: exported method Stats.Used should have comment or be unexported (golint)
    • Line 17: warning: exported method Stats.Blobs 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!


misspell88%

Misspell Finds commonly misspelled English words