intel-device-plugins-for-ku.../.golangci.yml
Mikko Ylinen a2ee5c93bf lint: disable deprecated checks
WARN [runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused.
WARN [runner] The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused.
WARN [runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused.
WARN [linters context] rowserrcheck is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649.
WARN [linters context] structcheck is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-10-05 09:50:17 +03:00

64 lines
1.0 KiB
YAML

run:
tests: true
build-tags:
- kerneldrv
max-issues-per-linter: 0
max-same-issues: 0
linters:
disable-all: true
enable:
- asciicheck
- bodyclose
- dogsled
- errcheck
- exportloopref
- gocognit
- goconst
- gocyclo
- godot
- goerr113
- gofmt
- goimports
- gomodguard
- gosimple
- gosec
- govet
- goprintffuncname
- ineffassign
- misspell
- nakedret
- noctx
- nolintlint
- prealloc
- revive
- staticcheck
- stylecheck
- typecheck
- unconvert
- unused
- whitespace
- wsl
linters-settings:
gofmt:
simplify: true
golint:
min-confidence: 0.9
govet:
check-shadowing: true
enable:
- "fieldalignment"
gocyclo:
min-complexity: 15
gocognit:
min-complexity: 31
issues:
exclude-rules:
- path: _test\.go
linters:
# Until the testing package allows pinning variables disable scopelint
# for tests. See https://github.com/kyoh86/scopelint/issues/4.
- scopelint