Skip to content

Commit 9b4bc64

Browse files
committed
exclude main_test.go due a false positive
1 parent 4f6128e commit 9b4bc64

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.golangci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ version: "2"
22

33
run:
44
timeout: 5m
5-
# Skip vendor and generated code
6-
skip-dirs:
7-
- pkg/go-containerregistry
8-
skip-files:
9-
- main_test.go
105

116
formatters:
127
enable:
@@ -216,6 +211,10 @@ linters:
216211
- text: '^shadow: declaration of "(ctx|err|ok)" shadows declaration'
217212
linters:
218213
- govet
214+
- path: main_test\.go # Exclude main_test.go files because of a false positive: https://github.com/docker/model-runner/actions/runs/20296739902/job/58292102948
215+
linters:
216+
- staticcheck
217+
text: "SA5011"
219218

220219
issues:
221220
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.

0 commit comments

Comments
 (0)