Preparing report...

Report for github.com/aperturerobotics/go-brotli-decoder

(v0.0.0-20240410100920-248fb6ce50c2)

A+    Excellent!    Found 6 issues across 18 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!


gofmt83%

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


gocyclo77%

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.

    • reader.go
    • Line 48: warning: cyclomatic complexity 16 of function (*Reader).Read() is high (> 15) (gocyclo)
    • decode.go
    • Line 2088: warning: cyclomatic complexity 91 of function decoderDecompressStream() is high (> 15) (gocyclo)
    • Line 1685: warning: cyclomatic complexity 67 of function processCommandsInternal() is high (> 15) (gocyclo)
    • Line 183: warning: cyclomatic complexity 34 of function decodeMetaBlockLength() is high (> 15) (gocyclo)
    • Line 2581: warning: cyclomatic complexity 30 of function decoderErrorString() is high (> 15) (gocyclo)
    • Line 989: warning: cyclomatic complexity 25 of function decodeContextMap() is high (> 15) (gocyclo)
    • Line 746: warning: cyclomatic complexity 24 of function readHuffmanCode() is high (> 15) (gocyclo)

ineffassign94%

IneffAssign detects ineffectual assignments in Go code.

    • decode.go
    • Line 991: warning: ineffectual assignment to result (ineffassign)
    • Line 2456: warning: ineffectual assignment to hgroup (ineffassign)

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!