[lintian] 01/01: Also ignore lines that (meta) reference "typo" when checking for "spelling-error-in-changelog".
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 20f431d12759dad4ef7dce099cfa2a85622e8630
Author: Chris Lamb <lamby@debian.org>
Date: Fri Sep 29 15:33:13 2017 +0100
Also ignore lines that (meta) reference "typo" when checking for "spelling-error-in-changelog".
---
checks/changelog-file.pm | 2 +-
debian/changelog | 3 +++
t/tests/spelling-general/debian/debian/changelog.in | 1 +
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/checks/changelog-file.pm b/checks/changelog-file.pm
index 26b5d7a..1afbc3a 100644
--- a/checks/changelog-file.pm
+++ b/checks/changelog-file.pm
@@ -468,7 +468,7 @@ sub run {
# Strip out all lines that contain the word spelling to avoid false
# positives on changelog entries for spelling fixes.
- $changes =~ s/^.*spelling.*\n//gm;
+ $changes =~ s/^.*(?:spelling|typo).*\n//gm;
check_spelling($changes, $group->info->spelling_exceptions,
$SPELLING_ERROR_CHANGELOG);
}
diff --git a/debian/changelog b/debian/changelog
index feaae9d..8ba825a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,9 @@ lintian (2.5.54) UNRELEASED; urgency=medium
* checks/files.desc:
+ [CL] Correct grammar and punctuation in description of
node-package-install-in-nodejs-rootdir.
+ * checks/changelog-file.pm:
+ + [CL] Also ignore lines that (meta) reference "typo" when checking
+ for "spelling-error-in-changelog".
* data/standards-version/release-dates:
+ [CL] Add 4.1.1 as a known standards version.
diff --git a/t/tests/spelling-general/debian/debian/changelog.in b/t/tests/spelling-general/debian/debian/changelog.in
index 2167ddc..e71b286 100644
--- a/t/tests/spelling-general/debian/debian/changelog.in
+++ b/t/tests/spelling-general/debian/debian/changelog.in
@@ -8,5 +8,6 @@
- This line has the same speling error, but we should only
get one tag for it.
* Corrected spelling: abov -> above.
+ * Corrected typo: abov -> above.
-- {$author} {$date}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: