peczenyj / ttempdir

ttempdir detects temporary directories not using t.TempDir
https://github.com/peczenyj/ttempdir
MIT License
3 stars 1 forks source link

Change diagnostic message #9

Closed peczenyj closed 3 weeks ago

peczenyj commented 3 weeks ago

Based on this suggestion from @Antonboom

https://github.com/golangci/golangci-lint/pull/4794#issuecomment-2149000616

instead:

./main_test.go:11:14: os.TempDir() can be replaced by t.TempDir() in TestMain

we will:

./main_test.go:11:14: os.TempDir() should be replaced by t.TempDir() in TestMain