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 16, 2024
1 parent 88b92b2 commit d1a668c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ linters-settings:
rewrite-rules:
- pattern: 'interface{}'
replacement: 'any'
govet:
# report about shadowed variables
check-shadowing: false

linters:
enable:
Expand Down

0 comments on commit d1a668c

Please sign in to comment.