mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00

The config file is migrated using golangci-lint migrate. Three new staticcheck checks got disabled (QF100x, 1,4, and 8). Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
95 lines
1.5 KiB
YAML
95 lines
1.5 KiB
YAML
version: "2"
|
|
run:
|
|
build-tags:
|
|
- kerneldrv
|
|
tests: true
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- asciicheck
|
|
- bodyclose
|
|
- copyloopvar
|
|
- dogsled
|
|
- err113
|
|
- errcheck
|
|
- gocognit
|
|
- goconst
|
|
- gocyclo
|
|
- godot
|
|
- gomodguard
|
|
- goprintffuncname
|
|
- gosec
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- nakedret
|
|
- noctx
|
|
- nolintlint
|
|
- prealloc
|
|
- revive
|
|
- staticcheck
|
|
- unconvert
|
|
- unused
|
|
- whitespace
|
|
- wsl
|
|
settings:
|
|
gocognit:
|
|
min-complexity: 31
|
|
gocyclo:
|
|
min-complexity: 15
|
|
govet:
|
|
enable:
|
|
- fieldalignment
|
|
- shadow
|
|
revive:
|
|
rules:
|
|
- name: unused-parameter
|
|
disabled: true
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
rules:
|
|
- linters:
|
|
- staticcheck
|
|
text: QF100(1|4|8)
|
|
- linters:
|
|
- gosec
|
|
text: G115
|
|
- linters:
|
|
- gocognit
|
|
- gocyclo
|
|
- wsl
|
|
path: _test\.go
|
|
- linters:
|
|
- gocognit
|
|
- gocyclo
|
|
- wsl
|
|
path: test/e2e/
|
|
- linters:
|
|
- wsl
|
|
path: cmd/gpu_fakedev/
|
|
- linters:
|
|
- goconst
|
|
path: (.+)_test\.go
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- goimports
|
|
settings:
|
|
gofmt:
|
|
simplify: true
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|