Skip to content

Commit 7a8f403

Browse files
authored
Merge pull request #7437 from oscr/cleanup-golangci-lint-config
✨ golangci-lint: set go version in run configuration instead of for eac…
2 parents 32807f5 + c9b5a66 commit 7a8f403

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

.golangci.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
run:
2+
timeout: 10m
3+
go: "1.19"
4+
build-tags:
5+
- tools
6+
- e2e
7+
skip-files:
8+
- "zz_generated.*\\.go$"
9+
- "vendored_openapi\\.go$"
10+
allow-parallel-runners: true
11+
112
linters:
213
disable-all: true
314
enable:
@@ -141,10 +152,6 @@ linters-settings:
141152
allow-unused: false
142153
allow-leading-space: false
143154
require-specific: true
144-
staticcheck:
145-
go: "1.19"
146-
stylecheck:
147-
go: "1.19"
148155
gosec:
149156
excludes:
150157
- G307 # Deferring unsafe method "Close" on type "\*os.File"
@@ -170,8 +177,7 @@ linters-settings:
170177
- wrapperFunc
171178
- rangeValCopy
172179
- hugeParam
173-
unused:
174-
go: "1.19"
180+
175181
issues:
176182
max-same-issues: 0
177183
max-issues-per-linter: 0
@@ -254,13 +260,3 @@ issues:
254260
- gocritic
255261
text: "deferInLoop: Possible resource leak, 'defer' is called in the 'for' loop"
256262
path: _test\.go
257-
258-
run:
259-
timeout: 10m
260-
build-tags:
261-
- tools
262-
- e2e
263-
skip-files:
264-
- "zz_generated.*\\.go$"
265-
- "vendored_openapi\\.go$"
266-
allow-parallel-runners: true

0 commit comments

Comments
 (0)