Merge pull request #1089 from Cyan4973/trailingWhitespaceLineNb

trailingWhitespace test now provides the line number when test fails
This commit is contained in:
Yann Collet
2025-12-17 11:23:32 -08:00
committed by GitHub

View File

@@ -528,7 +528,7 @@ listL120: # extract lines >= 120 characters in *.{c,h}, by Takayuki Matsuoka (n
.PHONY: trailingWhitespace
trailingWhitespace:
! $(GREP) -E "`printf '[ \\t]$$'`" cli/*.c cli/*.h cli/*.1 *.c *.h LICENSE Makefile build/cmake/CMakeLists.txt
@$(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
.PHONY: lint-unicode
lint-unicode: