1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

chore: enable dogsled linter (#3921)

Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
This commit is contained in:
Charles-Edouard Brétéché 2022-05-16 08:31:41 +02:00 committed by GitHub
parent 7d7a23e74a
commit 474223dc5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@ linters:
- bodyclose
- containedctx
- deadcode
- dogsled
- durationcheck
- errcheck
- exportloopref

View file

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