Preparing report...

Report for github.com/lukechampine/jsteg

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


gocyclo37%

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.

    • jsteg/scan.go
    • Line 14: warning: cyclomatic complexity 45 of function (*decoder).processSOS() is high (> 15) (gocyclo)
    • jsteg/reader.go
    • Line 278: warning: cyclomatic complexity 38 of function (*decoder).processSOF() is high (> 15) (gocyclo)
    • Line 498: warning: cyclomatic complexity 36 of function (*decoder).decode() is high (> 15) (gocyclo)
    • jsteg/huffman.go
    • Line 92: warning: cyclomatic complexity 19 of function (*decoder).processDHT() is high (> 15) (gocyclo)

golint87%

Golint is a linter for Go source code.

    • jsteg/fdct.go
    • Line 64: warning: don't use underscores in Go names; const fix_0_298631336 should be fix0_298631336 (golint)
    • Line 65: warning: don't use underscores in Go names; const fix_0_390180644 should be fix0_390180644 (golint)
    • Line 66: warning: don't use underscores in Go names; const fix_0_541196100 should be fix0_541196100 (golint)
    • Line 67: warning: don't use underscores in Go names; const fix_0_765366865 should be fix0_765366865 (golint)
    • Line 68: warning: don't use underscores in Go names; const fix_0_899976223 should be fix0_899976223 (golint)
    • Line 69: warning: don't use underscores in Go names; const fix_1_175875602 should be fix1_175875602 (golint)
    • Line 70: warning: don't use underscores in Go names; const fix_1_501321110 should be fix1_501321110 (golint)
    • Line 71: warning: don't use underscores in Go names; const fix_1_847759065 should be fix1_847759065 (golint)
    • Line 72: warning: don't use underscores in Go names; const fix_1_961570560 should be fix1_961570560 (golint)
    • Line 73: warning: don't use underscores in Go names; const fix_2_053119869 should be fix2_053119869 (golint)
    • Line 74: warning: don't use underscores in Go names; const fix_2_562915447 should be fix2_562915447 (golint)
    • Line 75: warning: don't use underscores in Go names; const fix_3_072711026 should be fix3_072711026 (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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!