mirror of
https://github.com/containers/podman
synced 2024-10-19 16:54:07 +00:00
db826d5d75
this is the third round of preparing to use the golangci-lint on our code base. Signed-off-by: baude <bbaude@redhat.com>
56 lines
892 B
YAML
56 lines
892 B
YAML
---
|
|
run:
|
|
build-tags:
|
|
- apparmor
|
|
- ostree
|
|
- seccomp
|
|
- selinux
|
|
concurrency: 6
|
|
deadline: 5m
|
|
skip-dirs:
|
|
- dependencies/*
|
|
- contrib
|
|
- test/e2e
|
|
- docs
|
|
- test/
|
|
- tracing
|
|
skip-files:
|
|
- iopodman.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
|