Preparing report...

Report for github.com/dsnet/compress

(v0.0.1)

A    Great!    Found 67 issues across 111 files

Tweet

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!


gofmt59%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo73%

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.

    • bzip2/prefix.go
    • Line 181: warning: cyclomatic complexity 29 of function handleDegenerateCodes() is high (> 15) (gocyclo)
    • internal/prefix/prefix.go
    • Line 137: warning: cyclomatic complexity 29 of function GenerateLengths() is high (> 15) (gocyclo)
    • Line 326: warning: cyclomatic complexity 16 of function GeneratePrefixes() is high (> 15) (gocyclo)
    • brotli/bit_reader.go
    • Line 304: warning: cyclomatic complexity 17 of function (*bitReader).readComplexPrefixCode() is high (> 15) (gocyclo)
    • flate/prefix.go
    • Line 83: warning: cyclomatic complexity 25 of function (*prefixReader).ReadPrefixCodes() is high (> 15) (gocyclo)
    • xflate/reader.go
    • Line 354: warning: cyclomatic complexity 18 of function (*Reader).decodeIndex() is high (> 15) (gocyclo)
    • bzip2/writer.go
    • Line 221: warning: cyclomatic complexity 16 of function (*Writer).encodePrefix() is high (> 15) (gocyclo)
    • bzip2/internal/sais/sais_byte.go
    • Line 422: warning: cyclomatic complexity 59 of function computeSA_byte() is high (> 15) (gocyclo)
    • Line 124: warning: cyclomatic complexity 24 of function postProcLMS1_byte() is high (> 15) (gocyclo)
    • Line 209: warning: cyclomatic complexity 22 of function sortLMS2_byte() is high (> 15) (gocyclo)
    • bzip2/internal/sais/sais_int.go
    • Line 422: warning: cyclomatic complexity 59 of function computeSA_int() is high (> 15) (gocyclo)
    • Line 124: warning: cyclomatic complexity 24 of function postProcLMS1_int() is high (> 15) (gocyclo)
    • Line 209: warning: cyclomatic complexity 22 of function sortLMS2_int() is high (> 15) (gocyclo)
    • brotli/reader.go
    • Line 322: warning: cyclomatic complexity 33 of function (*Reader).readCommands() is high (> 15) (gocyclo)
    • Line 149: warning: cyclomatic complexity 16 of function (*Reader).readBlockHeader() is high (> 15) (gocyclo)
    • internal/prefix/prefix_test.go
    • Line 592: warning: cyclomatic complexity 36 of function TestPrefix() is high (> 15) (gocyclo)
    • Line 83: warning: cyclomatic complexity 28 of function TestReader() is high (> 15) (gocyclo)
    • Line 316: warning: cyclomatic complexity 23 of function TestGenerate() is high (> 15) (gocyclo)
    • Line 217: warning: cyclomatic complexity 23 of function TestWriter() is high (> 15) (gocyclo)
    • bzip2/reader.go
    • Line 67: warning: cyclomatic complexity 20 of function (*Reader).Read() is high (> 15) (gocyclo)
    • Line 206: warning: cyclomatic complexity 16 of function (*Reader).decodePrefix() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!