Skip to content

Commit

Permalink
fix(make): remove fail* check on error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
karol-kokoszka committed Feb 28, 2024
1 parent b08287f commit dae70b2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit dae70b2

Please sign in to comment.