Preparing report...

Report for github.com/makometr/huffman-GoLang

A    Great!    Found 4 issues across 7 files

Tweet

gofmt85%

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!


golint71%

Golint is a linter for Go source code.

    • huffman-GoLang/huffman/huffman.go
    • Line 16: warning: exported function ConvertEncodeTable should have comment or be unexported (golint)
    • Line 24: warning: exported function ConvertDecodeTable should have comment or be unexported (golint)
    • Line 39: warning: exported method AlgoData.GetCharFrequences should have comment or be unexported (golint)
    • Line 42: warning: exported method AlgoData.GetEncodeTable should have comment or be unexported (golint)
    • Line 45: warning: exported method AlgoData.GetDecodeTable should have comment or be unexported (golint)
    • Line 48: warning: exported method AlgoData.PrintTree should have comment or be unexported (golint)
    • Line 51: warning: exported method AlgoData.EncodeText should have comment or be unexported (golint)
    • Line 56: warning: exported method AlgoData.DecodeText should have comment or be unexported (golint)
    • Line 61: warning: exported method AlgoData.PrintStatistics should have comment or be unexported (golint)
    • Line 84: warning: comment on exported function NewAlgoDataFromFrequence should be of the form "NewAlgoDataFromFrequence ..." (golint)
    • Line 93: warning: exported function EncodeBytes should have comment or be unexported (golint)
    • Line 125: warning: exported function DecodeBytes should have comment or be unexported (golint)
    • Line 172: warning: exported method AlgoData.Print should have comment or be unexported (golint)
    • Line 172: warning: receiver name h should be consistent with previous receiver name d for AlgoData (golint)
    • Line 235: warning: should omit 2nd value from range; this loop is equivalent to `for checkedCode := range ...` (golint)
    • huffman-GoLang/huffman/jsonify.go
    • Line 15: warning: exported function EncodeToJSON should have comment or be unexported (golint)
    • Line 27: warning: exported function DecodeFromJSON should have comment or be unexported (golint)
    • Line 39: warning: exported function PrintEncodeStatisticsJSON should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell71%

Misspell Finds commonly misspelled English words