From dae70b270437f3770e36d36edca19428c2b99221 Mon Sep 17 00:00:00 2001 From: Karol Kokoszka Date: Wed, 28 Feb 2024 15:36:17 +0100 Subject: [PATCH] fix(make): remove `fail*` check on error messages --- Makefile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 455c308dad..2a7e5966b3 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ fmt: ## Format source code .PHONY: check check: ## Perform static code analysis -check: .check-go-version .check-copyright .check-comments .check-errors-wrap \ +check: .check-go-version .check-copyright .check-comments \ .check-log-capital-letter .check-timeutc .check-lint .check-vendor .PHONY: .check-go-version @@ -59,13 +59,6 @@ check: .check-go-version .check-copyright .check-comments .check-errors-wrap \ (echo $$f $$e; false); \ done -.PHONY: .check-errors-wrap -.check-errors-wrap: - @set -e; for f in `$(GOFILES)`; do \ - ! e=`grep -n -E 'errors\.(Errorf|New|Wrap|Wrapf)' $$f | grep -E '("| )fail'` || \ - (echo $$f $$e; false); \ - done - .PHONY: .check-log-capital-letter .check-log-capital-letter: @set -e; for f in `$(GOFILES)`; do \