Files
fission-src/.golangci.yaml
Sanket SudakeandGitHub 2b13af0a5e Add staticcheck fixes (#3221)
* 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>
2025-05-18 22:27:45 +05:30

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$