diff options
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 61 |
1 files changed, 20 insertions, 41 deletions
diff --git a/.golangci.yml b/.golangci.yml index fcf2582e8..dda1cc7ec 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,49 +6,28 @@ run: - selinux concurrency: 6 deadline: 5m + skip-dirs-use-default: true skip-dirs: - - dependencies/* - contrib - - test/e2e - - docs - - test/ - - tracing + - dependencies + - test skip-files: - iopodman.go + - swagger.go linters: - disable-all: true - enable: - - bodyclose - - deadcode - - depguard - # dupl really overdid it; disabling - # - dupl - - errcheck - - gofmt - - gosimple - - govet - - ineffassign - - nakedret - - staticcheck - - structcheck - - typecheck - - unused - - varcheck - # - gochecknoglobals - # - gochecknoinits - # - goconst - # - gocritic - # - gocyclo - # - goimports - # - golint - # - gosec - - interfacer - # - lll - # - maligned - # - misspell - # - prealloc - - scopelint - - stylecheck - - unconvert - # I think we should uncomment this one and used it - # - unparam + enable-all: true + disable: + - dupl + - funlen + - gochecknoglobals + - gochecknoinits + - goconst + - gocyclo + - golint + - goimports + - gosec + - lll + - maligned + - misspell + - prealloc + - unparam |