From 0372a1c37b428a54e0f26a076c4fb0a734f82a3a Mon Sep 17 00:00:00 2001 From: Roberto Santalla Date: Tue, 24 Oct 2023 13:27:18 +0200 Subject: [PATCH] golangci: disable new linters we do not want --- .golangci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index c17bdc01..52b4d7d0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -104,4 +104,8 @@ linters: - ifshort - nosnakecase - depguard # Dependency whitelist, needs to be configured + - goconst # Fails if the same strings used in several places but is not a constant. Not very useful. + - inamedparam # Fails if interfaces do not have named params. Not in our code style. + - perfsprint # Suggests using strconv.* instead of fmt.* for printing numbers. Not very practical. + - protogetter # Complains when code reads var.Something if var.GetSomething() exists. Not useful. fast: false