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:
Marten Seemann
2025-06-11 15:39:07 +08:00
committed by GitHub
parent aa22706d78
commit d33d293fd2
3 changed files with 11 additions and 16 deletions

View File

@@ -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: