From 28f73405719eef5d32eba888e83d960861f8c4dd Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Thu, 3 Oct 2024 20:56:46 +0400 Subject: [PATCH] [check] Improve the wording of comment misalignment check State explicitly that multiple of 4 is expected. --- tools/check-source.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check-source.sh b/tools/check-source.sh index 5ddbdf9dfc..e3cf49d72c 100755 --- a/tools/check-source.sh +++ b/tools/check-source.sh @@ -170,7 +170,7 @@ for f in $texfiles; do sed '/^[0-9]\+$/{N;s/\n/:/;}' | sed "s/.*/$f:&/" | awk '{ match($0,"^[-a-z0-9]*[.]tex:[0-9]*:"); n=match(substr($0,RLENGTH+1),"[ ;]//"); if (n % 4 != 0) print "comment starts in column " n ": " $0; }' done | - fail "comment not aligned" || failed=1 + fail "comment not aligned to multiple of 4" || failed=1 # Deleted special member function with a parameter name. grep -n "&[ 0-9a-z_]\+) = delete" $texfiles |