summaryrefslogtreecommitdiff
path: root/.golangci.yml
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-04-27 14:28:38 +0200
committerMatthew Heon <matthew.heon@pm.me>2022-05-03 13:44:33 -0400
commitfb14171cba46f331fd9b25efed36c25b6b7ebcea (patch)
treecac289dfbc9cc6869915f22932e528ecb8fb71bc /.golangci.yml
parent7249651329c380f21a9e5f7bef870950b6086eab (diff)
downloadpodman-fb14171cba46f331fd9b25efed36c25b6b7ebcea.tar.gz
podman-fb14171cba46f331fd9b25efed36c25b6b7ebcea.tar.bz2
podman-fb14171cba46f331fd9b25efed36c25b6b7ebcea.zip
enable errcheck linter
The errcheck linter makes sure that errors are always check and not ignored by accident. It spotted a lot of unchecked errors, mostly in the tests but also some real problem in the code. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml3
1 files changed, 1 insertions, 2 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 1ce18c0c3..7eb6ea57e 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -45,7 +45,6 @@ linters:
- gocyclo
- lll
- unconvert
- - errcheck
- gosec
- maligned
- gomoddirectives
@@ -65,4 +64,4 @@ linters:
linters-settings:
errcheck:
check-blank: false
- ignore: encoding/json:^Unmarshal,fmt:.*
+ ignore: fmt:.*