mirror of
https://github.com/restic/restic.git
synced 2025-12-10 21:21:48 +00:00
CI: use strict matching for generated source files in golangci-lint
This commit is contained in:
@@ -41,7 +41,6 @@ linters:
|
|||||||
# extra disables
|
# extra disables
|
||||||
- "-QF1008" # don't warn about specifing name of embedded field on access
|
- "-QF1008" # don't warn about specifing name of embedded field on access
|
||||||
exclusions:
|
exclusions:
|
||||||
generated: lax
|
|
||||||
rules:
|
rules:
|
||||||
# revive: ignore unused parameters in tests
|
# revive: ignore unused parameters in tests
|
||||||
- path: (_test\.go|testing\.go|backend/.*/tests\.go)
|
- path: (_test\.go|testing\.go|backend/.*/tests\.go)
|
||||||
@@ -74,7 +73,6 @@ formatters:
|
|||||||
# make sure code is formatted
|
# make sure code is formatted
|
||||||
- gofmt
|
- gofmt
|
||||||
exclusions:
|
exclusions:
|
||||||
generated: lax
|
|
||||||
paths:
|
paths:
|
||||||
- third_party$
|
- third_party$
|
||||||
- builtin$
|
- builtin$
|
||||||
|
|||||||
Reference in New Issue
Block a user