.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:
Kir Kolyshkin
2025-03-27 12:27:50 -07:00
parent c72526cd9c
commit f3e7b26fdd

View File

@ -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