Debian Codegraph @

fmts/testdata/go-consistent.ok

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