mirror of
https://github.com/containers/podman.git
synced 2025-05-17 06:59:07 +08:00

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>
59 lines
947 B
YAML
59 lines
947 B
YAML
---
|
|
run:
|
|
concurrency: 6
|
|
deadline: 5m
|
|
skip-dirs-use-default: true
|
|
skip-dirs:
|
|
- contrib
|
|
- dependencies
|
|
- test
|
|
skip-files:
|
|
- swagger.go
|
|
modules-download-mode: readonly
|
|
linters:
|
|
enable-all: true
|
|
disable:
|
|
# All these break for one reason or another
|
|
- nolintlint
|
|
- gocognit
|
|
- testpackage
|
|
- goerr113
|
|
- exhaustivestruct
|
|
- errorlint
|
|
- wrapcheck
|
|
- paralleltest
|
|
- wsl
|
|
- godox
|
|
- tparallel
|
|
- gomnd
|
|
- nlreturn
|
|
- noctx
|
|
- nestif
|
|
- predeclared
|
|
- thelper
|
|
- ifshort
|
|
- staticcheck
|
|
- forbidigo
|
|
- exhaustive
|
|
- unparam
|
|
- gofumpt
|
|
- gci
|
|
- godot
|
|
- makezero
|
|
- dupl
|
|
- funlen
|
|
- gochecknoglobals
|
|
- gochecknoinits
|
|
- goconst
|
|
- gocyclo
|
|
- lll
|
|
- unconvert
|
|
- errcheck
|
|
- gocritic
|
|
- gosec
|
|
- maligned
|
|
linters-settings:
|
|
errcheck:
|
|
check-blank: false
|
|
ignore: encoding/json:^Unmarshal,fmt:.*
|