Skip to content

Commit 88f95e0

Browse files
committed
trailingWhitespace test now provides the line number when test fails
1 parent 13b9915 commit 88f95e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ listL120: # extract lines >= 120 characters in *.{c,h}, by Takayuki Matsuoka (n
528528

529529
.PHONY: trailingWhitespace
530530
trailingWhitespace:
531-
! $(GREP) -E "`printf '[ \\t]$$'`" cli/*.c cli/*.h cli/*.1 *.c *.h LICENSE Makefile build/cmake/CMakeLists.txt
531+
@$(GREP) -n -E "`printf '[ \\t]$$'`" cli/*.c cli/*.h cli/*.1 *.c *.h LICENSE Makefile build/cmake/CMakeLists.txt && { echo "Error: trailing whitespace detected"; exit 1; } || true
532532

533533
.PHONY: lint-unicode
534534
lint-unicode:

0 commit comments

Comments
 (0)