diff --git a/.golangci.yml b/.golangci.yml index 8cd1b51545..dd87e3fedb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -110,8 +110,16 @@ linters: # Never check for rollback errors as Rollback() is called when a previous error was detected. - (github.com/prometheus/prometheus/storage.Appender).Rollback perfsprint: + # Optimizes even if it requires an int or uint type cast. + 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: true + # Optimizes into strings concatenation. + strconcat: false revive: # By default, revive will enable only the linting rules that are named in the configuration file. # So, it's needed to explicitly enable all required rules here.