mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
golangci-lint round #3
this is the third round of preparing to use the golangci-lint on our code base. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
55
.golangci.yml
Normal file
55
.golangci.yml
Normal file
@ -0,0 +1,55 @@
|
||||
---
|
||||
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
|
||||
Reference in New Issue
Block a user