Commit 90f7c88b authored by Chris Lamb's avatar Chris Lamb 💬

Drop quoting around the field that violates "field-too-long" whilst a...

Drop quoting around the field that violates "field-too-long" whilst a convincing case can certainly be made for quoting the offending field (eg "'Depends'") it feels too inconsistent with the rest of Lintian.
parent f02d7ae0
......@@ -28,8 +28,6 @@ use strict;
use warnings;
use autodie;
use constant QUOTE => q{'};
use Moo;
use namespace::clean;
......@@ -50,8 +48,8 @@ sub always {
next
unless $length > $maximum;
my $label = QUOTE . $name . QUOTE;
$label =~ s/\b(\w)/\U$1/g;
# Title-case the field name
my ($label) = $name =~ s/\b(\w)/\U$1/g;
$self->tag('field-too-long', $label, "($length chars > $maximum)");
}
......
depends-field-too-long (binary): field-too-long 'Depends' (6846 chars > 5000)
depends-field-too-long (binary): field-too-long Depends (6846 chars > 5000)
provides-field-too-long (binary): field-too-long 'Provides' (277987 chars > 5000)
provides-field-too-long (binary): field-too-long Provides (277987 chars > 5000)
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