Preparing report...

Report for github.com/kristoiv/sparse

A    Great!    Found 2 issues across 3 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!


gocyclo66%

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.


golint33%

Golint is a linter for Go source code.

    • sparse/simg2img.go
    • Line 9: warning: exported function Simg2imgReader should have comment or be unexported (golint)
    • Line 17: warning: exported function Simg2imgWriter should have comment or be unexported (golint)
    • Line 28: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 67: warning: don't use underscores in Go names; const state_reading_header should be stateReadingHeader (golint)
    • Line 68: warning: don't use underscores in Go names; const state_reading_chunk_header should be stateReadingChunkHeader (golint)
    • Line 69: warning: don't use underscores in Go names; const state_reading_raw should be stateReadingRaw (golint)
    • Line 70: warning: don't use underscores in Go names; const state_failed should be stateFailed (golint)
    • Line 84: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • sparse/sparse.go
    • Line 11: warning: exported type SparseHeader should have comment or be unexported (golint)
    • Line 23: warning: exported type ChunkHeader should have comment or be unexported (golint)
    • Line 31: warning: don't use underscores in Go names; const type_raw should be typeRaw (golint)
    • Line 32: warning: don't use underscores in Go names; const type_fill should be typeFill (golint)
    • Line 33: warning: don't use underscores in Go names; const type_dont_care should be typeDontCare (golint)
    • Line 108: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (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!


misspell66%

Misspell Finds commonly misspelled English words