summaryrefslogtreecommitdiff
path: root/.golangci.yml
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2021-02-12 17:59:50 +0100
committerPaul Holzinger <paul.holzinger@web.de>2021-02-12 18:20:28 +0100
commit78b419909bdf1eeb4af17fff471b381de91bcf73 (patch)
treefadbae0f1fec5a2052f8087519f0e3ea49a7621d /.golangci.yml
parent78c8a87362ee27ba1d2a62b7c9d73adc313c7d7e (diff)
downloadpodman-78b419909bdf1eeb4af17fff471b381de91bcf73.tar.gz
podman-78b419909bdf1eeb4af17fff471b381de91bcf73.tar.bz2
podman-78b419909bdf1eeb4af17fff471b381de91bcf73.zip
Enable more golangci-lint linters
Cleanup the golangci.yml file and enable more linters. `pkg/spec` and `iopodman.io` is history. The vendor directory is excluded by default. The dependencies dir was listed twice. Fix the reported problems in `pkg/specgen` because that was also excluded by `pkg/spec`. Enable the structcheck, typecheck, varcheck, deadcode and depguard linters. [NO TESTS NEEDED] Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml9
1 files changed, 0 insertions, 9 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 76cf0cad8..cf067a58c 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -4,14 +4,10 @@ run:
deadline: 5m
skip-dirs-use-default: true
skip-dirs:
- - dependencies
- contrib
- dependencies
- test
- - pkg/spec
- - vendor
skip-files:
- - iopodman.go
- swagger.go
modules-download-mode: readonly
linters:
@@ -51,12 +47,7 @@ linters:
- goconst
- gocyclo
- lll
- - structcheck
- - typecheck
- unconvert
- - varcheck
- - deadcode
- - depguard
- errcheck
- gocritic
- gosec