Skip to content

Commit

Permalink
golangci-lint: enable some presets
Browse files Browse the repository at this point in the history
In addition to the default set of enabled linters, enable
ones from the following presets:
 - bugs
 - performance
 - unused
 - format

This actually enables the following additional linters:
 - asciicheck
 - bodyclose
 - errorlint
 - exhaustive
 - exportloopref
 - gofmt
 - gofumpt
 - goimports
 - gosec (gas)
 - makezero
 - maligned
 - noctx
 - prealloc
 - rowserrcheck
 - scopelint
 - sqlclosecheck
 - unparam

Signed-off-by: Kir Kolyshkin <[email protected]>
  • Loading branch information
kolyshkin committed Feb 16, 2021
1 parent 43cbac9 commit fbb743f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
run:
skip_dirs:
- rpc
- stats

linters:
disable-all: false
presets:
- bugs
- performance
- unused
- format

0 comments on commit fbb743f

Please sign in to comment.