Commit 33fcd1be by Chris Lamb

Don't use $. out-of-context when reporting on dh --parallel.

parent 912e7347
Pipeline #5599 failed with stage
in 0 seconds
......@@ -135,7 +135,7 @@ sub run {
delete($build_systems{'debhelper'});
$seen_dh = 1;
$seencommand = 1;
$seen_dh_parallel = 1 if m/--parallel/;
$seen_dh_parallel = $. if m/--parallel/;
$needbuilddepends = 1;
$needtomodifyscripts = 1;
while (m/\s--with(?:=|\s+)(['"]?)(\S+)\1/go) {
......@@ -335,7 +335,7 @@ sub run {
}
tag 'debian-rules-uses-unnecessary-dh-argument', 'dh ... --parallel',
"(line $.)"
"(line $seen_dh_parallel)"
if $seen_dh_parallel and $level >= 10;
# Check the files in the debian directory for various debhelper-related
......
......@@ -14,6 +14,8 @@ lintian (2.5.85) UNRELEASED; urgency=medium
whitespace at end of files.
+ [CL] Drop now-misleading comment regarding trailing whitespace
filenames being relative.
* checks/debhelper.pm:
+ [CL] Don't use $. out-of-context when reporting on dh --parallel.
* checks/description.pm:
+ [CL] Rework the description-synopsis-might-not-be-phrased-properly
tag to ensure we do not cause false-positives for literal "e.g.",
......
W: debhelper-dh-unnecessary-arguments source: debian-rules-uses-unnecessary-dh-argument dh ... --parallel (line 13)
W: debhelper-dh-unnecessary-arguments source: debian-rules-uses-unnecessary-dh-argument dh ... --parallel (line 4)
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