Preparing report...

Report for github.com/danielgatis/imgcat

A+    Excellent!    Found 1 issues across 4 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!


gocyclo75%

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.

    • imgcat/main.go
    • Line 54: warning: cyclomatic complexity 16 of function decode() is high (> 15) (gocyclo)

golint75%

Golint is a linter for Go source code.

    • imgcat/main.go
    • Line 25: warning: exported const RESIZE_OFFSET_Y should have comment or be unexported (golint)
    • Line 26: warning: exported const RESIZE_FACTOR_Y should have comment or be unexported (golint)
    • Line 27: warning: exported const RESIZE_FACTOR_X should have comment or be unexported (golint)
    • Line 28: warning: exported const DEFAULT_TERM_WIDTH should have comment or be unexported (golint)
    • Line 29: warning: exported const DEFAULT_TERM_HEIGHT should have comment or be unexported (golint)
    • Line 30: warning: exported const FPS should have comment or be unexported (golint)
    • Line 32: warning: exported const ANSI_CURSOR_UP should have comment or be unexported (golint)
    • Line 33: warning: exported const ANSI_CURSOR_HIDE should have comment or be unexported (golint)
    • Line 34: warning: exported const ANSI_CURSOR_SHOW should have comment or be unexported (golint)
    • Line 35: warning: exported const ANSI_BG_TRANSPARENT_COLOR should have comment or be unexported (golint)
    • Line 36: warning: exported const ANSI_BG_RGB_COLOR should have comment or be unexported (golint)
    • Line 37: warning: exported const ANSI_FG_TRANSPARENT_COLOR should have comment or be unexported (golint)
    • Line 38: warning: exported const ANSI_FG_RGB_COLOR should have comment or be unexported (golint)
    • Line 39: warning: exported const ANSI_RESET should have comment or be unexported (golint)
    • Line 44: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 113: warning: if block ends with a return statement, so drop this else and outdent its block (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!