Debian Codegraph @

fmts/testdata/go-consistent.in

raw
1 ./fmts/testdata/resources/go/go_consistent.go:29:6: zero value ptr alloc: use new(T) for *T allocation
2 ./fmts/testdata/resources/go/go_consistent.go:31:6: zero value ptr alloc: use new(T) for *T allocation
3 ./fmts/testdata/resources/go/go_consistent.go:38:6: empty slice: use make([]T, 0)
4 ./fmts/testdata/resources/go/go_consistent.go:45:6: empty map: use make(map[K]V)
5 ./fmts/testdata/resources/go/go_consistent.go:52:6: hex lit: use a-f (lower case) digits
6 ./fmts/testdata/resources/go/go_consistent.go:60:6: range check: use align-left, like in `x >= low && x <= high`
7 ./fmts/testdata/resources/go/go_consistent.go:67:6: and-not: remove a space between & and ^, like in `x &^ y`
8 ./fmts/testdata/resources/go/go_consistent.go:75:6: float lit: use explicit int/frac part, like in `1.0` and `0.1`
9 ./fmts/testdata/resources/go/go_consistent.go:77:6: float lit: use explicit int/frac part, like in `1.0` and `0.1`
10 ./fmts/testdata/resources/go/go_consistent.go:84:1: label case: use ALL_UPPER
11 ./fmts/testdata/resources/go/go_consistent.go:86:1: label case: use ALL_UPPER
12 ./fmts/testdata/resources/go/go_consistent.go:99:2: untyped const coerce: specify type in LHS, like in `var x T = const`
13 ./fmts/testdata/resources/go/go_consistent.go:113:2: arg list parens: align `)` to a same line with last argument
14 ./fmts/testdata/resources/go/go_consistent.go:136:6: non-zero length test: use `len(s) != 0`
15 ./fmts/testdata/resources/go/go_consistent.go:138:6: non-zero length test: use `len(s) != 0`
16 ./fmts/testdata/resources/go/go_consistent.go:154:2: default case order: default case should be the first case