Skip to content

Commit 241768d

Browse files
authored
Format imports with GCI (connectrpc#407)
`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.
1 parent 8e45b51 commit 241768d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.golangci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ linters:
3636
- funlen # rely on code review to limit function length
3737
- gocognit # dubious "cognitive overhead" quantification
3838
- gofumpt # prefer standard gofmt
39+
- goimports # rely on gci instead
3940
- golint # deprecated by Go team
4041
- gomnd # some unnamed constants are okay
4142
- ifshort # deprecated by author

0 commit comments

Comments
 (0)