diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-06-15 19:50:39 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-06-15 19:58:30 +0200 |
commit | 21819254ddb7d48f3483cadcecb20a63d1db8cd7 (patch) | |
tree | b099423296b2282910ae5febffdb3c8a3026d1ad /.golangci.yml | |
parent | 08f35dab5a1dc961992430373415492cf7c1963a (diff) | |
download | podman-21819254ddb7d48f3483cadcecb20a63d1db8cd7.tar.gz podman-21819254ddb7d48f3483cadcecb20a63d1db8cd7.tar.bz2 podman-21819254ddb7d48f3483cadcecb20a63d1db8cd7.zip |
golangci-lint: update to v1.46.2
Update to the latest golangci-lint version. v1.46 added new linters.
I disabled nonamedreturns and exhaustruct since they enforce a certain
code style and using them would require big changes to the code base.
The nosprintfhostport is new and I fixed one problem in the tests. While
the test itself is fine because it uses ipv4 only the linter still looks
good because the sprintf use will fail for ipv6 addresses.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml index 31b0416fa..d8e80ec27 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -55,6 +55,8 @@ linters: - varnamelen - maintidx - nilnil + - nonamedreturns + - exhaustruct # deprecated linters - golint # replaced by revive - scopelint # replaced by exportloopref |