From 64e9fd50edfbf0287660c8de92a5091e1715fa32 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Tue, 24 Sep 2024 07:17:52 +0200 Subject: [PATCH] chore: disable require-error rule from testifylint Signed-off-by: Matthieu MOREL --- hack/golangci-hints.yaml | 2 ++ hack/golangci-strict.yaml | 2 ++ hack/golangci.yaml.in | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hack/golangci-hints.yaml b/hack/golangci-hints.yaml index 58b382f0b2c..4aa49842c20 100644 --- a/hack/golangci-hints.yaml +++ b/hack/golangci-hints.yaml @@ -185,3 +185,5 @@ linters-settings: # please keep this alphabetized - "all" testifylint: enable-all: true + disable: # TODO: remove each disabled rule and fix it + - require-error diff --git a/hack/golangci-strict.yaml b/hack/golangci-strict.yaml index aadba2975ce..a079e8c449a 100644 --- a/hack/golangci-strict.yaml +++ b/hack/golangci-strict.yaml @@ -225,3 +225,5 @@ linters-settings: # please keep this alphabetized - "all" testifylint: enable-all: true + disable: # TODO: remove each disabled rule and fix it + - require-error diff --git a/hack/golangci.yaml.in b/hack/golangci.yaml.in index 7dc7f7a4366..a09d17c4ad0 100644 --- a/hack/golangci.yaml.in +++ b/hack/golangci.yaml.in @@ -210,8 +210,8 @@ linters-settings: # please keep this alphabetized {{- end}} testifylint: enable-all: true - {{- if .Base}} disable: # TODO: remove each disabled rule and fix it + {{- if .Base}} - compares - error-is-as - error-nil @@ -219,5 +219,5 @@ linters-settings: # please keep this alphabetized - float-compare - go-require - nil-compare - - require-error {{- end}} + - require-error