Preparing report...

Report for github.com/flanglet/kanzi-go/v2

(v2.3.0)

A+    Excellent!    Found 29 issues across 56 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!


gofmt100%

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

No problems detected. Good job!


gocyclo48%

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.

    • transform/DivSufSort.go
    • Line 1951: warning: cyclomatic complexity 72 of function (*DivSufSort).trIntroSort() is high (> 15) (gocyclo)
    • Line 1336: warning: cyclomatic complexity 47 of function (*DivSufSort).ssMultiKeyIntroSort() is high (> 15) (gocyclo)
    • Line 832: warning: cyclomatic complexity 39 of function (*DivSufSort).ssSwapMerge() is high (> 15) (gocyclo)
    • Line 319: warning: cyclomatic complexity 33 of function (*DivSufSort).sortTypeBstar() is high (> 15) (gocyclo)
    • Line 1080: warning: cyclomatic complexity 28 of function (*DivSufSort).ssMergeBackward() is high (> 15) (gocyclo)
    • Line 1824: warning: cyclomatic complexity 27 of function (*DivSufSort).trPartition() is high (> 15) (gocyclo)
    • Line 206: warning: cyclomatic complexity 22 of function (*DivSufSort).constructBWT() is high (> 15) (gocyclo)
    • Line 982: warning: cyclomatic complexity 18 of function (*DivSufSort).ssMergeForward() is high (> 15) (gocyclo)
    • Line 534: warning: cyclomatic complexity 16 of function (*DivSufSort).ssSort() is high (> 15) (gocyclo)
    • transform/RLT.go
    • Line 66: warning: cyclomatic complexity 58 of function (*RLT).Forward() is high (> 15) (gocyclo)
    • Line 324: warning: cyclomatic complexity 21 of function (*RLT).Inverse() is high (> 15) (gocyclo)
    • transform/EXECodec.go
    • Line 664: warning: cyclomatic complexity 48 of function parseExeHeader() is high (> 15) (gocyclo)
    • Line 562: warning: cyclomatic complexity 31 of function detectExeType() is high (> 15) (gocyclo)
    • Line 162: warning: cyclomatic complexity 16 of function (*EXECodec).forwardX86() is high (> 15) (gocyclo)
    • io/CompressedStream.go
    • Line 562: warning: cyclomatic complexity 39 of function (*encodingTask).encode() is high (> 15) (gocyclo)
    • Line 1456: warning: cyclomatic complexity 36 of function (*decodingTask).decode() is high (> 15) (gocyclo)
    • Line 1060: warning: cyclomatic complexity 21 of function (*Reader).readHeader() is high (> 15) (gocyclo)
    • Line 295: warning: cyclomatic complexity 17 of function (*Writer).writeHeader() is high (> 15) (gocyclo)
    • Line 1316: warning: cyclomatic complexity 16 of function (*Reader).processBlock() is high (> 15) (gocyclo)
    • Line 1245: warning: cyclomatic complexity 16 of function (*Reader).Read() is high (> 15) (gocyclo)
    • Line 958: warning: cyclomatic complexity 16 of function (*Reader).validateHeaderless() is high (> 15) (gocyclo)
    • transform/AliasCodec.go
    • Line 76: warning: cyclomatic complexity 32 of function (*AliasCodec).Forward() is high (> 15) (gocyclo)
    • Line 276: warning: cyclomatic complexity 22 of function (*AliasCodec).Inverse() is high (> 15) (gocyclo)
    • app/Kanzi.go
    • Line 194: warning: cyclomatic complexity 156 of function processCommandLine() is high (> 15) (gocyclo)
    • Line 1010: warning: cyclomatic complexity 30 of function createFileList() is high (> 15) (gocyclo)
    • app/BlockCompressor.go
    • Line 321: warning: cyclomatic complexity 63 of function (*BlockCompressor).Compress() is high (> 15) (gocyclo)
    • Line 695: warning: cyclomatic complexity 40 of function (*fileCompressTask).call() is high (> 15) (gocyclo)
    • Line 76: warning: cyclomatic complexity 36 of function NewBlockCompressor() is high (> 15) (gocyclo)
    • transform/UTFCodec.go
    • Line 84: warning: cyclomatic complexity 28 of function (*UTFCodec).Forward() is high (> 15) (gocyclo)
    • Line 350: warning: cyclomatic complexity 22 of function validateUTF() is high (> 15) (gocyclo)
    • Line 252: warning: cyclomatic complexity 16 of function (*UTFCodec).Inverse() is high (> 15) (gocyclo)
    • transform/BWT.go
    • Line 331: warning: cyclomatic complexity 24 of function (*BWT).inverseBiPSIv2() is high (> 15) (gocyclo)
    • app/BlockDecompressor.go
    • Line 217: warning: cyclomatic complexity 55 of function (*BlockDecompressor).Decompress() is high (> 15) (gocyclo)
    • Line 508: warning: cyclomatic complexity 45 of function (*fileDecompressTask).call() is high (> 15) (gocyclo)
    • Line 66: warning: cyclomatic complexity 18 of function NewBlockDecompressor() is high (> 15) (gocyclo)
    • transform/Factory.go
    • Line 92: warning: cyclomatic complexity 24 of function newToken() is high (> 15) (gocyclo)
    • Line 312: warning: cyclomatic complexity 19 of function getByteFunctionTypeToken() is high (> 15) (gocyclo)
    • Line 207: warning: cyclomatic complexity 19 of function getByteFunctionNameToken() is high (> 15) (gocyclo)
    • app/InfoPrinter.go
    • Line 93: warning: cyclomatic complexity 22 of function (*InfoPrinter).ProcessEvent() is high (> 15) (gocyclo)
    • transform/ZRLT.go
    • Line 134: warning: cyclomatic complexity 17 of function (*ZRLT).Inverse() is high (> 15) (gocyclo)
    • Line 50: warning: cyclomatic complexity 17 of function (*ZRLT).Forward() is high (> 15) (gocyclo)
    • transform/ROLZCodec.go
    • Line 614: warning: cyclomatic complexity 48 of function (*rolzCodec1).Inverse() is high (> 15) (gocyclo)
    • Line 310: warning: cyclomatic complexity 42 of function (*rolzCodec1).Forward() is high (> 15) (gocyclo)
    • Line 1194: warning: cyclomatic complexity 23 of function (*rolzCodec2).Inverse() is high (> 15) (gocyclo)
    • Line 1061: warning: cyclomatic complexity 20 of function (*rolzCodec2).Forward() is high (> 15) (gocyclo)
    • entropy/HuffmanCodec.go
    • Line 659: warning: cyclomatic complexity 28 of function (*HuffmanDecoder).Read() is high (> 15) (gocyclo)
    • Line 209: warning: cyclomatic complexity 16 of function (*HuffmanEncoder).limitCodeLengths() is high (> 15) (gocyclo)
    • transform/LZCodec.go
    • Line 234: warning: cyclomatic complexity 53 of function (*LZXCodec).Forward() is high (> 15) (gocyclo)
    • Line 722: warning: cyclomatic complexity 29 of function (*LZXCodec).inverseV3() is high (> 15) (gocyclo)
    • Line 566: warning: cyclomatic complexity 29 of function (*LZXCodec).inverseV4() is high (> 15) (gocyclo)
    • Line 871: warning: cyclomatic complexity 24 of function (*LZXCodec).inverseV2() is high (> 15) (gocyclo)
    • Line 1045: warning: cyclomatic complexity 21 of function (*LZPCodec).Forward() is high (> 15) (gocyclo)
    • Line 1156: warning: cyclomatic complexity 17 of function (*LZPCodec).Inverse() is high (> 15) (gocyclo)
    • transform/TextCodec.go
    • Line 642: warning: cyclomatic complexity 43 of function (*textCodec1).Forward() is high (> 15) (gocyclo)
    • Line 1155: warning: cyclomatic complexity 43 of function (*textCodec2).Forward() is high (> 15) (gocyclo)
    • Line 906: warning: cyclomatic complexity 35 of function (*textCodec1).Inverse() is high (> 15) (gocyclo)
    • Line 1445: warning: cyclomatic complexity 34 of function (*textCodec2).Inverse() is high (> 15) (gocyclo)
    • Line 183: warning: cyclomatic complexity 30 of function computeTextStats() is high (> 15) (gocyclo)
    • Line 303: warning: cyclomatic complexity 22 of function detectTextType() is high (> 15) (gocyclo)
    • Line 1348: warning: cyclomatic complexity 16 of function (*textCodec2).emitSymbols() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


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!