From 160d2c57c09183c25803f2a8ae1461e4aaa8ce2a Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Mon, 15 Jun 2015 09:08:09 +0200 Subject: t/size: Do not penalize empty lines At worst it leads to removal of arbitrary empty lines to obey the line limit at the cost of readability. Signed-off-by: Niels Thykier --- t/size | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/size b/t/size index 77446ce1..813b2796 100755 --- a/t/size +++ b/t/size @@ -18,7 +18,7 @@ foreach my $file (@progs) { while () { $cutting=1 if /^=/; $cutting=0 if /^=cut/; - next if $cutting || /^(=|\s*\#)/; + next if $cutting || /^(?:=|\s*(?:\#.*)?$)/; $lines++; $maxlength=length($_) if length($_) > $maxlength; } -- cgit v1.2.3