From f3c8f1582062030fd4db0fd6d182e3668e4520f0 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Wed, 1 Jan 2025 13:53:23 +0100 Subject: [PATCH] Update .golangci.yaml --- .golangci.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 6e5a28774a50..b8c26930e2f9 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -83,13 +83,13 @@ linters-settings: - simmilar perfsprint: # Optimizes even if it requires an int or uint type cast. - int-conversion: false + int-conversion: true # Optimizes into `err.Error()` even if it is only equivalent for non-nil errors. err-error: true # Optimizes `fmt.Errorf`. errorf: true # Optimizes `fmt.Sprintf` with only one argument. - sprintf1: false + sprintf1: true # Optimizes into strings concatenation. strconcat: true revive: @@ -152,8 +152,5 @@ issues: linters: - gocritic text: "importShadow:" - - linters: - - perfsprint - text: "fmt.Sprint" exclude-use-default: false max-same-issues: 0