Skip to content

Commit dc4abf8

Browse files
committed
golangci-lint: gocheckcompilerdirectives: ignore "//go:fix"
The linter has not been updated yet to recognize this directive. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 7f78168 commit dc4abf8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.golangci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ linters:
220220
linters:
221221
- staticcheck
222222

223+
# TODO(thaJeztah): remove once https://github.com/leighmcculloch/gocheckcompilerdirectives/issues/7 is fixed.
224+
- text: "compiler directive unrecognized: //go:fix"
225+
linters:
226+
- gocheckcompilerdirectives
227+
223228
# Log a warning if an exclusion rule is unused.
224229
# Default: false
225230
warn-unused: true

0 commit comments

Comments
 (0)