mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-04 16:05:42 +00:00
golangci-lint: enable more govet checks
There are more useful checks such as nilness that are not enabled by default. However fieldalignment and shadow produce a lot of warnings that are not real issues, i.e. we shadow "err" as variable all the time, so they get disabled. see https://golangci-lint.run/docs/linters/configuration/#govet Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
d5213284f4
commit
c76b68dac5
1 changed files with 5 additions and 0 deletions
|
|
@ -56,6 +56,11 @@ linters:
|
|||
- wastedassign
|
||||
- whitespace
|
||||
settings:
|
||||
govet:
|
||||
enable-all: true
|
||||
disable:
|
||||
- fieldalignment
|
||||
- shadow
|
||||
forbidigo:
|
||||
forbid:
|
||||
# os.Is* error checking functions predate errors.Is. Therefore, they
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue