diff --git a/.golangci.yml b/.golangci.yml index 12639c4aa3..7745be15c3 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,6 +5,7 @@ linters: - bodyclose - containedctx - deadcode + - dogsled - durationcheck - errcheck - exportloopref diff --git a/pkg/testrunner/scenario.go b/pkg/testrunner/scenario.go index af48c65f08..de89b6b65e 100644 --- a/pkg/testrunner/scenario.go +++ b/pkg/testrunner/scenario.go @@ -72,7 +72,7 @@ type Generation struct { // It assumes that the project directory is 2 levels up. This means if this function is moved // it may not work as expected. func RootDir() string { - _, b, _, _ := runtime.Caller(0) + _, b, _, _ := runtime.Caller(0) // nolint:dogsled d := ospath.Join(ospath.Dir(b)) d = filepath.Dir(d) return filepath.Dir(d)