[debhelper-devel] [debhelper] 22/28: t/size: Do not penalize empty lines

Niels Thykier nthykier at moszumanska.debian.org
Sun Jun 28 12:57:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository debhelper.

commit 160d2c57c09183c25803f2a8ae1461e4aaa8ce2a
Author: Niels Thykier <niels at thykier.net>
Date:   Mon Jun 15 09:08:09 2015 +0200

    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 <niels at thykier.net>
---
 t/size | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/size b/t/size
index 77446ce..813b279 100755
--- a/t/size
+++ b/t/size
@@ -18,7 +18,7 @@ foreach my $file (@progs) {
 	while (<IN>) {
 		$cutting=1 if /^=/;
 		$cutting=0 if /^=cut/;
-		next if $cutting || /^(=|\s*\#)/;
+		next if $cutting || /^(?:=|\s*(?:\#.*)?$)/;
 		$lines++;
 		$maxlength=length($_) if length($_) > $maxlength;
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list