Preparing report...

Report for github.com/eventials/go-tus

A    Great!    Found 8 issues across 12 files

Tweet

gofmt83%

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!


gocyclo100%

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.

No problems detected. Good job!


golint41%

Golint is a linter for Go source code.

    • go-tus/memorystore/store.go
    • Line 19: warning: exported method MemoryStore.Get should have comment or be unexported (golint)
    • Line 24: warning: exported method MemoryStore.Set should have comment or be unexported (golint)
    • Line 28: warning: exported method MemoryStore.Delete should have comment or be unexported (golint)
    • Line 32: warning: exported method MemoryStore.Close should have comment or be unexported (golint)
    • go-tus/client.go
    • Line 12: warning: exported const ProtocolVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 54: warning: exported method Client.Do should have comment or be unexported (golint)
    • Line 201: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 235: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-tus/errors.go
    • Line 9: warning: exported var ErrChuckSize should have comment or be unexported (golint)
    • Line 22: warning: exported type ClientError should have comment or be unexported (golint)
    • go-tus/upload.go
    • Line 12: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 14: warning: exported type Upload should have comment or be unexported (golint)
    • Line 28: warning: comment on exported method Upload.Finished should be of the form "Finished ..." (golint)
    • Line 33: warning: comment on exported method Upload.Progress should be of the form "Progress ..." (golint)
    • Line 38: warning: comment on exported method Upload.Offset should be of the form "Offset ..." (golint)
    • Line 43: warning: comment on exported method Upload.Size should be of the form "Size ..." (golint)
    • go-tus/uploader.go
    • Line 7: warning: exported type Uploader should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method Uploader.NotifyUploadProgress should be of the form "NotifyUploadProgress ..." (golint)
    • Line 91: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • go-tus/leveldbstore/store.go
    • Line 8: warning: exported type LeveldbStore should have comment or be unexported (golint)
    • Line 12: warning: exported function NewLeveldbStore should have comment or be unexported (golint)
    • Line 22: warning: exported method LeveldbStore.Get should have comment or be unexported (golint)
    • Line 31: warning: exported method LeveldbStore.Set should have comment or be unexported (golint)
    • Line 35: warning: exported method LeveldbStore.Delete should have comment or be unexported (golint)
    • Line 39: warning: exported method LeveldbStore.Close 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!