Felix Lechner pushed to branch master at lintian / lintian
Commits:
-
9b8028c8
by Felix Lechner at 2022-01-23T10:58:27-08:00
-
72d1ee20
by Felix Lechner at 2022-01-23T11:48:35-08:00
-
78f4dcb5
by Felix Lechner at 2022-01-23T11:48:35-08:00
2 changed files:
Changes:
| ... | ... | @@ -133,7 +133,7 @@ if (my $coverage_arg = $ENV{LINTIAN_COVERAGE}) { |
| 133 | 133 |
}
|
| 134 | 134 |
|
| 135 | 135 |
my @getoptions = qw(
|
| 136 |
- allow-root
|
|
| 136 |
+ allow-root!
|
|
| 137 | 137 |
cfg=s
|
| 138 | 138 |
check|c
|
| 139 | 139 |
check-part|C=s@
|
| ... | ... | @@ -153,7 +153,7 @@ my @getoptions = qw( |
| 153 | 153 |
hyperlinks=s
|
| 154 | 154 |
ignore-lintian-env
|
| 155 | 155 |
include-dir=s@
|
| 156 |
- info|i
|
|
| 156 |
+ info|i!
|
|
| 157 | 157 |
jobs|j=i
|
| 158 | 158 |
no-cfg
|
| 159 | 159 |
no-override|o
|
| ... | ... | @@ -165,7 +165,7 @@ my @getoptions = qw( |
| 165 | 165 |
print-version
|
| 166 | 166 |
profile="">
|
| 167 | 167 |
quiet|q
|
| 168 |
- show-overrides
|
|
| 168 |
+ show-overrides!
|
|
| 169 | 169 |
status-log=s
|
| 170 | 170 |
suppress-tags=s@
|
| 171 | 171 |
suppress-tags-from-file=s
|
| ... | ... | @@ -201,8 +201,12 @@ if (exists $command_line{'print-version'}) { |
| 201 | 201 |
show_help()
|
| 202 | 202 |
if exists $command_line{help};
|
| 203 | 203 |
|
| 204 |
-$command_line{'show-overrides'} = 0
|
|
| 205 |
- if exists $command_line{'hide-overrides'};
|
|
| 204 |
+if (exists $command_line{'hide-overrides'}) {
|
|
| 205 |
+ $command_line{'show-overrides'} = 0;
|
|
| 206 |
+ warn encode_utf8(
|
|
| 207 |
+"A future release will drop --hide-overrides; please use --no-show-overrides instead.\n"
|
|
| 208 |
+ );
|
|
| 209 |
+}
|
|
| 206 | 210 |
|
| 207 | 211 |
$command_line{'tag-display-limit'} = 0
|
| 208 | 212 |
if exists $command_line{'no-tag-display-limit'};
|
| ... | ... | @@ -197,7 +197,10 @@ sub issue_hints { |
| 197 | 197 |
my $processable = $each->{processable};
|
| 198 | 198 |
|
| 199 | 199 |
$self->print_hint($profile, $hint,
|
| 200 |
- $processable,$option);
|
|
| 200 |
+ $processable,$option)
|
|
| 201 |
+ if ( !defined $hint->override
|
|
| 202 |
+ && !@{$hint->masks})
|
|
| 203 |
+ || $option->{'show-overrides'};
|
|
| 201 | 204 |
}
|
| 202 | 205 |
}
|
| 203 | 206 |
}
|
| ... | ... | @@ -322,7 +325,8 @@ sub print_hint { |
| 322 | 325 |
|
| 323 | 326 |
if ($option->{info}) {
|
| 324 | 327 |
|
| 325 |
- $self->describe_tag($tag, $option->{'output-width'})
|
|
| 328 |
+ # show only on first issuance
|
|
| 329 |
+ $self->describe_tag($profile->data, $tag, $option->{'output-width'})
|
|
| 326 | 330 |
unless $self->issued_tag($tag->name);
|
| 327 | 331 |
}
|
| 328 | 332 |
|