Skip to content

Commit

Permalink
lint: Drop no-op govet config
Browse files Browse the repository at this point in the history
According to https://golangci-lint.run/usage/linters/#govet,
`check-shadowing` no longer exists. Now it should be
```yaml
govet:
  disable: [shadow]
```
but `shadow` is disabled by default. Thus, whole `govet` section is not
needed anymore.

```
$ golangci-lint --version
golangci-lint has version 1.59.1 built with go1.22.3 from 1a55854a on 2024-06-09T18:08:33Z
```

Signed-off-by: Leonard Lyubich <[email protected]>
  • Loading branch information
cthulhu-rider committed Jul 11, 2024
1 parent e1d7877 commit 1450cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ linters-settings:
replacement: 'any'
govet:
# report about shadowed variables
check-shadowing: false
enable: [shadow]
gomodguard:
blocked:
modules:
Expand Down

0 comments on commit 1450cb0

Please sign in to comment.