intel-device-plugins-for-ku.../.golangci.yml
Tuomas Katila 8dd5b4aa44 e2e: gpu: add tests for different deployments
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
2024-09-11 09:29:58 +03:00

81 lines
1.2 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
- copyloopvar
- gocognit
- goconst
- gocyclo
- godot
- err113
- gofmt
- goimports
- gomodguard
- gosimple
- gosec
- govet
- goprintffuncname
- ineffassign
- misspell
- nakedret
- noctx
- nolintlint
- prealloc
- revive
- staticcheck
- stylecheck
- typecheck
- unconvert
- unused
- whitespace
- wsl
linters-settings:
revive:
rules:
- name: unused-parameter
disabled: true
gofmt:
simplify: true
golint:
min-confidence: 0.9
goconst:
ignore-tests: true
govet:
shadow: true
enable:
- "fieldalignment"
gocyclo:
min-complexity: 15
gocognit:
min-complexity: 31
issues:
exclude-rules:
- linters:
- gosec
text: "G115"
- path: _test\.go
linters:
- gocognit
- wsl
- gocyclo
- path: test/e2e/
linters:
- wsl
- gocognit
- gocyclo
- path: cmd/gpu_fakedev/
linters:
- wsl