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

[lintian] 01/01: Bump threshold for improbable bug number to 2000



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

jwilk pushed a commit to branch master
in repository lintian.

commit 3236056e86847bfcfda2ace0c14b0b474886d22f
Author: Jakub Wilk <jwilk@debian.org>
Date:   Sat Oct 1 20:20:43 2016 +0200

    Bump threshold for improbable bug number to 2000
    
    There are currently no unarchived bug with numbers < 2000.
---
 checks/changelog-file.desc                                | 2 +-
 checks/changelog-file.pm                                  | 2 +-
 debian/changelog                                          | 2 ++
 t/tests/changelog-file-general/debian/debian/changelog.in | 2 +-
 t/tests/changelog-file-general/tags                       | 2 +-
 5 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/checks/changelog-file.desc b/checks/changelog-file.desc
index bfa3a5a..9aaeca3 100644
--- a/checks/changelog-file.desc
+++ b/checks/changelog-file.desc
@@ -261,7 +261,7 @@ Ref: devref 6.3.4
 Tag: improbable-bug-number-in-closes
 Severity: normal
 Certainty: possible
-Info: The most recent changelog closes a bug numbered less than 100.
+Info: The most recent changelog closes a bug numbered less than 2000.
  While this is distantly possible, it's more likely a typo or a
  placeholder value that mistakenly wasn't filled in.
 
diff --git a/checks/changelog-file.pm b/checks/changelog-file.pm
index d9ea593..584c786 100644
--- a/checks/changelog-file.pm
+++ b/checks/changelog-file.pm
@@ -398,7 +398,7 @@ sub run {
 
         my $closes = $entry->Closes;
         for my $bug (@$closes) {
-            tag 'improbable-bug-number-in-closes', $bug if ($bug < 100);
+            tag 'improbable-bug-number-in-closes', $bug if ($bug < 2000);
         }
 
         # unstable, testing, and stable shouldn't be used in Debian
diff --git a/debian/changelog b/debian/changelog
index c9ecfc3..1246da1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,8 @@ lintian (2.5.48) UNRELEASED; urgency=low
       Build-Depends for detecting golang binaries.  Thanks to
       Martín Ferrari for the report and the initial patch.
       (Closes: #839228)
+  * checks/changelog-file.{desc,pm}:
+    + [JW] Bump threshold for improbable bug number to 2000.
   * checks/control-file.{desc,pm}:
     + [JW] Add references to tags related to build profiles.
     + [JW] Relax Build-Profiles syntax check to allow (almost) any
diff --git a/t/tests/changelog-file-general/debian/debian/changelog.in b/t/tests/changelog-file-general/debian/debian/changelog.in
index ae3f059..8b6e177 100644
--- a/t/tests/changelog-file-general/debian/debian/changelog.in
+++ b/t/tests/changelog-file-general/debian/debian/changelog.in
@@ -3,7 +3,7 @@
 
   * Test: {$testname}
   * Upload to experimental.
-  * improbable-bug-number-in-closes (Closes: #12)
+  * improbable-bug-number-in-closes (Closes: #1234)
   * Another bug closer without a colon (Closes #555555)
   * This line is too long since it contains words and words and words but doesn't
     have any wrapping except at column 81.
diff --git a/t/tests/changelog-file-general/tags b/t/tests/changelog-file-general/tags
index a21f615..c5a8859 100644
--- a/t/tests/changelog-file-general/tags
+++ b/t/tests/changelog-file-general/tags
@@ -5,7 +5,7 @@ W: changelog-file-general: changelog-references-temp-security-identifier TEMP-12
 W: changelog-file-general: debian-changelog-file-contains-obsolete-user-emacs-settings
 W: changelog-file-general: debian-changelog-line-too-long line 15
 W: changelog-file-general: debian-changelog-line-too-long line 8
-W: changelog-file-general: improbable-bug-number-in-closes 12
+W: changelog-file-general: improbable-bug-number-in-closes 1234
 W: changelog-file-general: latest-debian-changelog-entry-without-new-date
 W: changelog-file-general: latest-debian-changelog-entry-without-new-version
 W: changelog-file-general: misspelled-closes-bug #666666

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


Reply to: