Skip to content

Commit

Permalink
Format imports with GCI (#407)
Browse files Browse the repository at this point in the history
`golangci-lint` includes `gci` by default, so we can disable
`goimports`. The auto-fix function still works, so `make lintfix` is
enough to reformat any files with incorrectly grouped imports.
  • Loading branch information
akshayjshah authored Nov 29, 2022
1 parent 8e45b51 commit 241768d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ linters:
- funlen # rely on code review to limit function length
- gocognit # dubious "cognitive overhead" quantification
- gofumpt # prefer standard gofmt
- goimports # rely on gci instead
- golint # deprecated by Go team
- gomnd # some unnamed constants are okay
- ifshort # deprecated by author
Expand Down

0 comments on commit 241768d

Please sign in to comment.