mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
ci: fix .golangi.yml against JSONSchema validator
golangci-lint config can be verified using the followint command: golangci-lint config verify Our config had some errors so fix them. Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
This commit is contained in:
parent
e40638896f
commit
b14cefd485
@ -2,8 +2,6 @@ run:
|
|||||||
tests: true
|
tests: true
|
||||||
build-tags:
|
build-tags:
|
||||||
- kerneldrv
|
- kerneldrv
|
||||||
max-issues-per-linter: 0
|
|
||||||
max-same-issues: 0
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
disable-all: true
|
disable-all: true
|
||||||
@ -47,14 +45,12 @@ linters-settings:
|
|||||||
disabled: true
|
disabled: true
|
||||||
gofmt:
|
gofmt:
|
||||||
simplify: true
|
simplify: true
|
||||||
golint:
|
|
||||||
min-confidence: 0.9
|
|
||||||
goconst:
|
goconst:
|
||||||
ignore-tests: true
|
ignore-tests: true
|
||||||
govet:
|
govet:
|
||||||
shadow: true
|
|
||||||
enable:
|
enable:
|
||||||
- "fieldalignment"
|
- "fieldalignment"
|
||||||
|
- "shadow"
|
||||||
gocyclo:
|
gocyclo:
|
||||||
min-complexity: 15
|
min-complexity: 15
|
||||||
gocognit:
|
gocognit:
|
||||||
|
@ -973,7 +973,7 @@ func TestPciDeviceForCard(t *testing.T) {
|
|||||||
cardPath := filepath.Join(sysfs, "class", "drm", "card0")
|
cardPath := filepath.Join(sysfs, "class", "drm", "card0")
|
||||||
cardDevicePath := filepath.Join(cardPath, "device")
|
cardDevicePath := filepath.Join(cardPath, "device")
|
||||||
|
|
||||||
if err := os.MkdirAll(cardDevicePath, 0750); err != nil {
|
if err = os.MkdirAll(cardDevicePath, 0750); err != nil {
|
||||||
t.Fatalf("Card device path creation failed: %+v", err)
|
t.Fatalf("Card device path creation failed: %+v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -999,7 +999,7 @@ func TestPciDeviceForCard(t *testing.T) {
|
|||||||
cardPath = filepath.Join(sysfs, "class", "drm", "card1")
|
cardPath = filepath.Join(sysfs, "class", "drm", "card1")
|
||||||
cardDevicePath = filepath.Join(cardPath, "device")
|
cardDevicePath = filepath.Join(cardPath, "device")
|
||||||
|
|
||||||
if err := os.MkdirAll(cardDevicePath, 0750); err != nil {
|
if err = os.MkdirAll(cardDevicePath, 0750); err != nil {
|
||||||
t.Fatalf("Card device path creation failed: %+v", err)
|
t.Fatalf("Card device path creation failed: %+v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user