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

geissert pushed a commit to branch master
in repository lintian.

commit 24ee4aa77eefadd7b8d7f9330842a51a9ac77800
Author: Raphael Geissert <[email protected]>
Date:   Sun Jan 12 22:31:23 2014 +0100

    Check that two spaces are used after a full stop in a tag's info
---
 lib/Test/Lintian.pm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/Test/Lintian.pm b/lib/Test/Lintian.pm
index 50355b5..9f945aa 100644
--- a/lib/Test/Lintian.pm
+++ b/lib/Test/Lintian.pm
@@ -254,6 +254,14 @@ sub test_check_desc {
                 'Tag info does not speak of "I", or "we"')
               or $builder->diag("$cname: $tag\n");
 
+           $builder->ok($info !~ /(\S\w)\. [^ ]/ || $1 eq '.g', # for 'e.g.'
+               'Tag info uses two spaces after a full stop')
+              or $builder->diag("$cname: $tag\n");
+
+           $builder->ok($info !~ /(\S\w\.   )/,
+               'Tag info uses only two spaces after a full stop')
+              or $builder->diag("$cname: $tag ($1)\n");
+
             # Check the tag info for unescaped <> or for unknown tags (which
             # probably indicate the same thing).
             while ($info =~ s,<([^\s>]+)(?:\s+href=\"[^\"]+\")?>.*?</\1>,,s) {

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


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to