mirror of
https://github.com/containers/podman.git
synced 2025-07-02 00:30:00 +08:00
.golangci.yml: remove some linters
Let's take a look at each enabled linter and find out if it's needed; remove those that make no sense. * goheader: does nothing with empty configuration; * gomodguard: does nothing with empty configuration; * importas: does nothing with empty configuration; * loggercheck: this repo does not use any loggers it checks (kitlog,klog,logr,zap); * promlinter: this repo does not use Prometheus; * sloginit: this repo does not use slog; * spancheck: this repo does not use opentelemetry/opencensus; * zerologlint: this repo does not use zerolog; Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@ -22,19 +22,15 @@ linters:
|
||||
- gochecksumtype
|
||||
- gocritic
|
||||
- gofmt
|
||||
- goheader
|
||||
- goimports
|
||||
- gomodguard
|
||||
- goprintffuncname
|
||||
- gosimple
|
||||
- govet
|
||||
- grouper
|
||||
- iface
|
||||
- importas
|
||||
- inamedparam
|
||||
- ineffassign
|
||||
- interfacebloat
|
||||
- loggercheck
|
||||
- makezero
|
||||
- mirror
|
||||
- misspell
|
||||
@ -43,14 +39,11 @@ linters:
|
||||
- nolintlint
|
||||
- nosprintfhostport
|
||||
- prealloc
|
||||
- promlinter
|
||||
- protogetter
|
||||
- reassign
|
||||
- recvcheck
|
||||
- revive
|
||||
- rowserrcheck
|
||||
- sloglint
|
||||
- spancheck
|
||||
- sqlclosecheck
|
||||
- staticcheck
|
||||
- stylecheck
|
||||
@ -62,7 +55,6 @@ linters:
|
||||
- usetesting
|
||||
- wastedassign
|
||||
- whitespace
|
||||
- zerologlint
|
||||
linters-settings:
|
||||
errcheck:
|
||||
check-blank: false
|
||||
|
Reference in New Issue
Block a user