[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: Check lintian tags for the use of 'I' and 'we'



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

geissert pushed a commit to branch master
in repository lintian.

commit a2fa2c70048e4d5b9fe40c8f2662da3925fdb04a
Author: Raphael Geissert <geissert@debian.org>
Date:   Sun Jan 12 22:07:14 2014 +0100

    Check lintian tags for the use of 'I' and 'we'
---
 lib/Test/Lintian.pm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/Test/Lintian.pm b/lib/Test/Lintian.pm
index df3308f..50355b5 100644
--- a/lib/Test/Lintian.pm
+++ b/lib/Test/Lintian.pm
@@ -250,6 +250,10 @@ sub test_check_desc {
             $builder->is_eq(check_spelling(undef, $info),
                 0,"$cname: $tag has no spelling errors");
 
+            $builder->ok($info !~ /(?:^| )(?:[Ww]e|I)\b/,
+                'Tag info does not speak of "I", or "we"')
+              or $builder->diag("$cname: $tag\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


Reply to: