Skip to content

Commit

Permalink
golangci-lint: enable some presets, skip autogen
Browse files Browse the repository at this point in the history
1. Skip go code which is autogenerated.

2. In addition to the default set of enabled linters, enable
   some more, 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 eabb219
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 eabb219

Please sign in to comment.