* Add staticcheck fixes Signed-off-by: Sanket Sudake <sanketsudake@gmail.com> * update golangci-lint version Signed-off-by: Sanket Sudake <sanketsudake@gmail.com> --------- Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
52 lines
903 B
YAML
52 lines
903 B
YAML
version: "2"
|
|
linters:
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- nakedret
|
|
- promlinter
|
|
- unconvert
|
|
- unused
|
|
- staticcheck
|
|
settings:
|
|
errcheck:
|
|
exclude-functions:
|
|
- (*go.uber.org/zap.Logger).Sync
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
rules:
|
|
- linters:
|
|
- staticcheck
|
|
text: "QF1008"
|
|
- linters:
|
|
- staticcheck
|
|
text: "QF1001"
|
|
- linters:
|
|
- staticcheck
|
|
text: "QF1003"
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- goimports
|
|
settings:
|
|
goimports:
|
|
local-prefixes:
|
|
- github.com/fission/fission
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|