Skip to content

Commit 8e62868

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.golangci.yml

Lines changed: 5 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,11 @@ 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+
- unused
217+
- staticcheck
218+
text: "SA5011"
219219

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

0 commit comments

Comments
 (0)