From f3e7b26fdd6b9ef3e71c514a55d2c6d4da9cf132 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 27 Mar 2025 12:27:50 -0700 Subject: [PATCH] .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 --- .golangci.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index c421694fd5..852a9211e1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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