forked from quic-go/quic-go
ci: enable the usetesting linter (#5222)
This linter is useful to detect the creation of temporary directories and the setting of environment variables in tests.
This commit is contained in:
@@ -15,6 +15,7 @@ linters:
|
||||
- unconvert
|
||||
- unparam
|
||||
- unused
|
||||
- usetesting
|
||||
settings:
|
||||
depguard:
|
||||
rules:
|
||||
@@ -48,6 +49,10 @@ linters:
|
||||
misspell:
|
||||
ignore-rules:
|
||||
- ect
|
||||
# see https://github.com/ldez/usetesting/issues/10
|
||||
usetesting:
|
||||
context-background: false
|
||||
context-todo: false
|
||||
exclusions:
|
||||
generated: lax
|
||||
presets:
|
||||
|
||||
Reference in New Issue
Block a user