Skip to content

Commit 6697932

Browse files
authored
Merge pull request #1089 from Cyan4973/trailingWhitespaceLineNb
trailingWhitespace test now provides the line number when test fails
2 parents 13b9915 + 88f95e0 commit 6697932

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)