Skip to content

Commit a20b2e8

Browse files
committed
chore: enable linters.exclusions.warn-unused
1 parent 6f6f105 commit a20b2e8

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.golangci.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ linters:
138138
- name: unused-receiver
139139

140140
exclusions:
141+
warn-unused: true
141142
presets:
142143
- comments
143144
- std-error-handling
@@ -171,11 +172,6 @@ linters:
171172
linters: [gosec]
172173
text: "G306: Expect WriteFile permissions to be 0600 or less"
173174

174-
# Related to migration command.
175-
- path: pkg/commands/internal/migrate/two/
176-
linters:
177-
- lll
178-
179175
# Related to migration command.
180176
- path: pkg/commands/internal/migrate/
181177
linters:
@@ -199,10 +195,3 @@ formatters:
199195
goimports:
200196
local-prefixes:
201197
- github.com/golangci/golangci-lint/v2
202-
exclusions:
203-
paths:
204-
- test/testdata_etc # test files
205-
- internal/go # extracted from Go code
206-
- internal/x # extracted from x/tools code
207-
- pkg/goformatters/gci/internal # extracted from gci code
208-
- pkg/goanalysis/runner_checker.go # extracted from x/tools code

0 commit comments

Comments
 (0)