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