From 385705690475d93b326835b8ebd90853b279168a Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Fri, 12 Feb 2021 17:59:50 +0100 Subject: 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 --- .golangci.yml | 9 --------- 1 file changed, 9 deletions(-) (limited to '.golangci.yml') 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 -- cgit v1.2.3-54-g00ecf