forked from TrueCloudLab/frostfs-node
[#1718] linter: Enable gocritic linter
See https://go-critic.com/overview#checkers-from-the-diagnostic-group for list of default enabled checkers. `ifElseChain` disabled as it generates doubtful issues. Change-Id: I5937b116d9af8b3cdf8b06451c4904d0b3f67f68 Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
ca8b01667f
commit
3cbff57535
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,7 @@ linters:
|
|||
- exhaustive
|
||||
- funlen
|
||||
- gocognit
|
||||
- gocritic
|
||||
- godot
|
||||
- importas
|
||||
- ineffassign
|
||||
|
@ -44,6 +45,9 @@ linters:
|
|||
statements: 60
|
||||
gocognit:
|
||||
min-complexity: 40
|
||||
gocritic:
|
||||
disabled-checks:
|
||||
- ifElseChain
|
||||
importas:
|
||||
alias:
|
||||
- pkg: git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue