Skip to content

Commit a4ef5d7

Browse files
authored
skip main_test.go due a false positive (#521)
* skip main_test.go due a false positive * exclude main_test.go due a false positive
1 parent deee70f commit a4ef5d7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.golangci.yml

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

33
run:
44
timeout: 5m
5-
# Skip vendor and generated code
6-
skip-dirs:
7-
- pkg/go-containerregistry
85

96
formatters:
107
enable:
@@ -214,6 +211,10 @@ linters:
214211
- text: '^shadow: declaration of "(ctx|err|ok)" shadows declaration'
215212
linters:
216213
- 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"
217218

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

0 commit comments

Comments
 (0)