go-consistent icon indicating copy to clipboard operation
go-consistent copied to clipboard

Source code analyzer that helps you to make your Go programs more consistent.

Results 21 go-consistent issues
Sort by recently updated
recently updated
newest added

See https://github.com/FerretDB/FerretDB/pull/248 and https://github.com/FerretDB/FerretDB/runs/4758709579

I see the empty slice section https://github.com/quasilyte/go-consistent#empty-map does it make sense to include a `var` initialisation too? eg ```go a := make([]int, 0) b := []int{} var c []int ```...

Found only 3: ``` ./heatmap/add_profile_test.go:399:13: arg list parens: align `)` to a same line with last argument ./heatmap/add_profile_test.go:436:13: arg list parens: align `)` to a same line with last argument...

Your latest commit `s/Quasilyte/quasilyte` might have broken projects that reference indirectly (maybe even directly, not sure) `go-consistent` since `go mod` is case-sensitive and checks the paths (see this [issue](https://github.com/golang/go/issues/27154)). I...

This is handy when integrating linters into an already existing system.

Currently it seems that [Reviewdog](https://github.com/haya14busa/reviewdog) doesn't support `go-consistent`. Here is the error that Reviewdog spews out: ``` reviewdog: "goconsistent" is not supported. consider to add new errrorformat to https://github.com/haya14busa/errorformat ```...

help wanted

Add checker consistent usage of types in function declarations ```golang func some(a int, b int, c int) { ... } ``` vs ```golang func some(a, b, c int) { ......

Things like `optimize` vs `optimise` should be used consistently. Its either Ze or Se.

```go (a) type ( A struct { ... } B struct { ... } ) (b) type A struct { ... } type B struct { ... } ``` and...

This will increase test suite effectiveness. Probably should be only applied to negative tests. Example: ```go func floatLit() { //= explicit-int/frac _ = 0.0 //= explicit-int/frac _ = 0.123 //=...