Commit 7a2338a8 authored by Chris Lamb's avatar Chris Lamb

Include the synopsis itself for context, etc. when emitting the…

Include the synopsis itself for context, etc. when emitting the description-synopsis-might-not-be-phrased-properly tag.
parent 5fd1540f
Pipeline #5859 canceled with stage
in 0 seconds
......@@ -87,7 +87,8 @@ sub run {
}
if ($synopsis =~ m/(.*\.)(?:\s*$|\s+\S+)/i) {
tag 'description-synopsis-might-not-be-phrased-properly',
unless $1 =~ m/\s+etc\.$/
"\"$synopsis\""
unless $1 =~ m/\s+etc\.$/
or $1 =~ m/\s+e\.?g\.$/
or $1 =~ m/(?<!\.)\.\.\.$/;
}
......
......@@ -22,6 +22,8 @@ lintian (2.5.85) UNRELEASED; urgency=medium
"eg.", ellipsis ("..."), "etc.", splitting out the tests to make
it clearer and to catch some other corner cases. Thanks to Andreas
Beckmann for the detailed report. (Closes: #896671)
+ [CL] Include the synopsis itself for context, etc. when emitting the
description-synopsis-might-not-be-phrased-properly tag.
* checks/watch-file.desc:
+ [CL] Update description of debian-watch-uses-insecure-uri to clarify
what to do if there is currently no secure URI. Thanks to Andreas
......
I: description-synopsis-might-not-be-phrased-properly-2-ellipsis: description-synopsis-might-not-be-phrased-properly
I: description-synopsis-might-not-be-phrased-properly-4-ellipsis: description-synopsis-might-not-be-phrased-properly
I: description-synopsis-might-not-be-phrased-properly-full-stop: description-synopsis-might-not-be-phrased-properly
I: description-synopsis-might-not-be-phrased-properly-misspelt: description-synopsis-might-not-be-phrased-properly
I: description-synopsis-might-not-be-phrased-properly-two-sentences: description-synopsis-might-not-be-phrased-properly
I: description-synopsis-might-not-be-phrased-properly-2-ellipsis: description-synopsis-might-not-be-phrased-properly "This synopsis contains a 2-ellipsis .. and other words"
I: description-synopsis-might-not-be-phrased-properly-4-ellipsis: description-synopsis-might-not-be-phrased-properly "This synopsis contains a 4-ellipsis .... and other words"
I: description-synopsis-might-not-be-phrased-properly-full-stop: description-synopsis-might-not-be-phrased-properly "This synopsis ends with a full-stop."
I: description-synopsis-might-not-be-phrased-properly-misspelt: description-synopsis-might-not-be-phrased-properly "This synopsis ends with mispelling of stretc."
I: description-synopsis-might-not-be-phrased-properly-two-sentences: description-synopsis-might-not-be-phrased-properly "This synopsis starts a sentence. Then starts another."
......@@ -27,7 +27,7 @@ E: relations: needlessly-depends-on-awk pre-depends
E: relations: no-copyright-file
I: relations source: build-depends-on-python-dev-with-no-arch-any
I: relations source: ored-build-depends-on-obsolete-package build-depends-indep: gs
I: relations-multiple-libs: description-synopsis-might-not-be-phrased-properly
I: relations-multiple-libs: description-synopsis-might-not-be-phrased-properly "Duplicate library dependency relationships."
I: relations-multiple-libs: ored-depends-on-obsolete-package suggests: gs
I: relations: conflicts-with-version foobar (<< 5+5)
I: relations: ored-depends-on-obsolete-package recommends: gs-aladdin
......
......@@ -3,7 +3,7 @@ E: lintian-display-level: dir-in-usr-local usr/local/share/lintian/
E: lintian-display-level: dir-or-file-in-var-lock var/lock/lintian/
E: lintian-display-level: new-essential-package
E: lintian-display-level: possible-gpl-code-linked-with-openssl
I: lintian-display-level: description-synopsis-might-not-be-phrased-properly
I: lintian-display-level: description-synopsis-might-not-be-phrased-properly "Test Lintian --display-level handling."
I: lintian-display-level: desktop-entry-limited-to-environments usr/share/applications/script.desktop
I: lintian-display-level: package-contains-empty-directory usr/local/share/lintian/
P: lintian-display-level source: debian-control-has-unusual-field-spacing line 12
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment