Skip to content

Commit 2920bad

Browse files
authored
[check] Improve the error message for comment misalignment (#7285)
State explicitly that multiple of 4 is expected.
1 parent 70954ed commit 2920bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/check-source.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ for f in $texfiles; do
170170
sed '/^[0-9]\+$/{N;s/\n/:/;}' | sed "s/.*/$f:&/" |
171171
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; }'
172172
done |
173-
fail "comment not aligned" || failed=1
173+
fail "comment not aligned to multiple of 4" || failed=1
174174

175175
# Deleted special member function with a parameter name.
176176
grep -n "&[ 0-9a-z_]\+) = delete" $texfiles |

0 commit comments

Comments
 (0)