[lintian] 01/01: Dont consider "i.e." in the "two spaces after full stop" check
This is an automated email from the git hooks/post-receive script.
geissert pushed a commit to branch master
in repository lintian.
commit 371544197762c3aba8d7714f75005aacec469e01
Author: Raphael Geissert <geissert@debian.org>
Date: Sun Jan 12 22:52:25 2014 +0100
Dont consider "i.e." in the "two spaces after full stop" check
Additionally, make the same exceptions in the changelog-format check.
---
lib/Test/Lintian.pm | 2 +-
t/scripts/changelog-format.t | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/Test/Lintian.pm b/lib/Test/Lintian.pm
index 9f945aa..4bc5dc8 100644
--- a/lib/Test/Lintian.pm
+++ b/lib/Test/Lintian.pm
@@ -254,7 +254,7 @@ 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.'
+ $builder->ok($info !~ /(\S\w)\. [^ ]/ || $1 =~ '/^\.[ge]$/', # for 'e.g.'/'i.e.'
'Tag info uses two spaces after a full stop')
or $builder->diag("$cname: $tag\n");
diff --git a/t/scripts/changelog-format.t b/t/scripts/changelog-format.t
index 0c24538..64b856c 100755
--- a/t/scripts/changelog-format.t
+++ b/t/scripts/changelog-format.t
@@ -106,8 +106,8 @@ foreach (split /\n/,$changes) {
or diag("line: $line");
}
- if (m/\S\w\. (.)/) {
- ok($1 eq ' ', 'two spaces after a full stop')
+ if (m/(\S\w)\. (.)/) {
+ ok($2 eq ' ' && $1 !~ '/^\.[ge]$/', 'two spaces after a full stop')
or diag("line: $line");
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: