mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
lint: enable usetesting linter (#7322)
Enable the usetesting linter in golangci.yml configuration to enforce proper testing practices. Replace manual temporary directory and file creation with t.TempDir() in test files. This improves test reliability by ensuring proper cleanup and follows Go testing best practices. Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
@@ -8,6 +8,7 @@ linters:
|
||||
- unconvert
|
||||
- unused
|
||||
- whitespace
|
||||
- usetesting
|
||||
exclusions:
|
||||
generated: lax
|
||||
presets:
|
||||
|
||||
Reference in New Issue
Block a user