mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
chore: enable thelper linter in golangci-lint (#1386)
It allows us to report errors at the right place in the tests. There was only one function that was not using the helper. It has been fixed to use it.
This commit is contained in:
@@ -12,6 +12,7 @@ linters:
|
||||
- misspell
|
||||
- nolintlint
|
||||
- revive
|
||||
- thelper
|
||||
- staticcheck
|
||||
- unused
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ func TestHomeConfigDir(t *testing.T) {
|
||||
}
|
||||
|
||||
func setHome(t *testing.T, dir string) {
|
||||
t.Helper()
|
||||
|
||||
homeEnv := "HOME"
|
||||
if runtime.GOOS == "windows" {
|
||||
homeEnv = "USERPROFILE"
|
||||
|
||||
Reference in New Issue
Block a user