Skip to content

Commit 75be2c3

Browse files
committed
update golangci rules
1 parent 3d07833 commit 75be2c3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.golangci.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,14 @@ linters-settings:
203203
- G601
204204

205205
issues:
206+
exclude-dirs:
207+
- coderd/database/dbmem
208+
- node_modules
209+
- .git
210+
211+
skip-files:
212+
- scripts/rules.go
213+
206214
# Rules listed here: https://github.com/securego/gosec#available-rules
207215
exclude-rules:
208216
- path: _test\.go
@@ -211,25 +219,17 @@ issues:
211219
- errcheck
212220
- forcetypeassert
213221
- exhaustruct # This is unhelpful in tests.
214-
- revive:unused-parameter # TODO(JonA): disabling in order to update golangci-lint
222+
- revive # TODO(JonA): disabling in order to update golangci-lint
215223
- gosec # TODO(JonA): disabling in order to update golangci-lint
216224
- path: scripts/*
217225
linters:
218226
- exhaustruct
219-
- path: coderd/database/dbmem/* # dbmem is being deprecated and removed.
220-
linters:
221-
- ALL
222227

223228
fix: true
224229
max-issues-per-linter: 0
225230
max-same-issues: 0
226231

227232
run:
228-
skip-dirs:
229-
- node_modules
230-
- .git
231-
skip-files:
232-
- scripts/rules.go
233233
timeout: 10m
234234

235235
# Over time, add more and more linters from

0 commit comments

Comments
 (0)