Preparing report...

Report for github.com/heldeen/aoc2020

A+    Excellent!    Found 28 issues across 46 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!


gocyclo95%

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.


golint39%

Golint is a linter for Go source code.

    • aoc2020/gameconsole/console.go
    • Line 12: warning: exported function NewGameConsole should have comment or be unexported (golint)
    • Line 18: warning: exported function LoadProgram should have comment or be unexported (golint)
    • aoc2020/util/pkg_path.go
    • Line 9: warning: exported function PkgPath should have comment or be unexported (golint)
    • Line 18: warning: exported function CmdPkgPath should have comment or be unexported (golint)
    • aoc2020/util/input.go
    • Line 8: warning: exported function LinesToStrLine should have comment or be unexported (golint)
    • Line 16: warning: exported function LinesToStrSlice should have comment or be unexported (golint)
    • Line 24: warning: comment on exported function GroupedLines should be of the form "GroupedLines ..." (golint)
    • Line 44: warning: exported function LinesToIntSlice should have comment or be unexported (golint)
    • Line 53: warning: exported function LinesToSingleCsvToStrSlice should have comment or be unexported (golint)
    • aoc2020/challenge/input.go
    • Line 13: warning: exported type Input should have comment or be unexported (golint)
    • Line 19: warning: exported function FromFile should have comment or be unexported (golint)
    • Line 28: warning: exported function FromFileP should have comment or be unexported (golint)
    • Line 37: warning: exported function FromLiteral should have comment or be unexported (golint)
    • Line 64: warning: exported method Input.Lines should have comment or be unexported (golint)
    • aoc2020/util/math.go
    • Line 3: warning: exported function Max should have comment or be unexported (golint)
    • Line 10: warning: exported function Min should have comment or be unexported (golint)
    • Line 17: warning: exported function Reduce should have comment or be unexported (golint)
    • Line 25: warning: exported function Apply should have comment or be unexported (golint)
    • Line 36: warning: exported function Sign should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!