Preparing report...

Report for github.com/dds/aoc2020

A    Great!    Found 66 issues across 74 files

Tweet

gofmt77%

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!


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.

    • aoc2020/day18/day18.go
    • Line 133: warning: cyclomatic complexity 22 of function (expr).eval2() is high (> 15) (gocyclo)
    • Line 43: warning: cyclomatic complexity 21 of function (expr).eval1() is high (> 15) (gocyclo)

golint28%

Golint is a linter for Go source code.

    • aoc2020/day6/day6.go
    • Line 25: warning: exported var Input should have comment or be unexported (golint)
    • Line 51: warning: exported function Test should have comment or be unexported (golint)
    • aoc2020/day24/day24.go
    • Line 11: warning: exported var Input should have comment or be unexported (golint)
    • Line 13: warning: exported function Test should have comment or be unexported (golint)
    • aoc2020/day4/day4.go
    • Line 27: warning: exported var Input should have comment or be unexported (golint)
    • Line 29: warning: exported function Test should have comment or be unexported (golint)
    • aoc2020/day18/day18.go
    • Line 33: warning: exported var NumberRE should have comment or be unexported (golint)
    • Line 232: warning: exported var Input should have comment or be unexported (golint)
    • aoc2020/day1/day1.go
    • Line 10: warning: exported var Input should have comment or be unexported (golint)
    • Line 41: warning: don't use underscores in Go names; func part2_DictionaryApproach should be part2DictionaryApproach (golint)
    • aoc2020/day23/day23.go
    • Line 11: warning: exported var Input should have comment or be unexported (golint)
    • Line 13: warning: exported function Test should have comment or be unexported (golint)
    • aoc2020/day25/day25.go
    • Line 11: warning: exported var Input should have comment or be unexported (golint)
    • Line 13: warning: exported function Test should have comment or be unexported (golint)
    • aoc2020/day8/day8.go
    • Line 86: warning: don't use underscores in Go names; func part2_serial should be part2Serial (golint)
    • Line 112: warning: don't use underscores in Go names; func part2_parallel should be part2Parallel (golint)
    • Line 142: warning: exported var Input should have comment or be unexported (golint)
    • aoc2020/day2/day2.go
    • Line 23: warning: exported var Input should have comment or be unexported (golint)
    • Line 25: warning: exported function Test should have comment or be unexported (golint)
    • aoc2020/day19/day19.go
    • Line 12: warning: exported var Input should have comment or be unexported (golint)
    • Line 76: warning: receiver name s should be consistent with previous receiver name q for rules (golint)
    • aoc2020/day21/day21.go
    • Line 11: warning: exported var Input should have comment or be unexported (golint)
    • Line 13: warning: exported function Test should have comment or be unexported (golint)
    • aoc2020/lib/inputs/test.go
    • Line 3: warning: exported function TestInput1 should have comment or be unexported (golint)
    • Line 10: warning: exported function TestInput2 should have comment or be unexported (golint)
    • aoc2020/lib/grid.go
    • Line 8: warning: exported type Dim should have comment or be unexported (golint)
    • Line 10: warning: exported method Dim.Index should have comment or be unexported (golint)
    • Line 13: warning: exported method Dim.Point should have comment or be unexported (golint)
    • Line 17: warning: exported function Euclid should have comment or be unexported (golint)
    • Line 22: warning: exported function Taxi should have comment or be unexported (golint)
    • Line 27: warning: exported var Directions should have comment or be unexported (golint)
    • Line 34: warning: comment on exported function Neighbors4 should be of the form "Neighbors4 ..." (golint)
    • Line 42: warning: exported var Diagnals should have comment or be unexported (golint)
    • Line 49: warning: comment on exported function Neighbors8 should be of the form "Neighbors8 ..." (golint)
    • Line 58: warning: comment on exported function UDLR should be of the form "UDLR ..." (golint)
    • aoc2020/lib/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)
    • aoc2020/day5/day5.go
    • Line 13: warning: exported var Input should have comment or be unexported (golint)
    • Line 15: warning: exported function Test should have comment or be unexported (golint)
    • Line 65: warning: don't use underscores in Go names; func part1_ShiftApproach should be part1ShiftApproach (golint)
    • Line 119: warning: don't use underscores in Go names; func part2_XorApproach should be part2XorApproach (golint)
    • aoc2020/lib/inputs.go
    • Line 13: warning: comment on exported var Inputs should be of the form "Inputs ..." (golint)
    • Line 16: warning: comment on exported function ParseInput should be of the form "ParseInput ..." (golint)
    • Line 31: warning: comment on exported function InputFloats should be of the form "InputFloats ..." (golint)
    • Line 58: warning: comment on exported function InputInts should be of the form "InputInts ..." (golint)
    • Line 88: warning: comment on exported function TrimSpace should be of the form "TrimSpace ..." (golint)
    • Line 96: warning: exported var NumberRE should have comment or be unexported (golint)
    • aoc2020/day22/day22.go
    • Line 11: warning: exported var Input should have comment or be unexported (golint)
    • Line 13: warning: exported function Test should have comment or be unexported (golint)
    • aoc2020/day3/day3.go
    • Line 16: warning: exported var Input should have comment or be unexported (golint)
    • Line 18: warning: exported function Test should have comment or be unexported (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!


misspell98%

Misspell Finds commonly misspelled English words