Skip to content

Commit 0c753e4

Browse files
authored
configure govet linter to identify shadow vars (#1823)
Signed-off-by: Dani Louca <[email protected]>
1 parent d879eb7 commit 0c753e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ linters:
112112
enable-all: true
113113

114114
settings:
115+
shadow:
116+
strict: true
115117
printf: # analyzer name, run `go tool vet help` to see all analyzers
116118
funcs: # run `go tool vet help printf` to see available settings for `printf` analyzer
117119
- Infof

0 commit comments

Comments
 (0)