, C, or C, based on the tag visibility, and
other attributes (such as whether experimental is set). This code will
never be C or C; overrides and experimental tags are handled
separately.
=cut
# Map visibility levels to tag codes.
our %CODES = (
'error' => 'E',
'warning' => 'W',
'info' => 'I',
'pedantic' => 'P',
'classification' => 'C',
);
sub code {
my ($self) = @_;
return $CODES{$self->visibility};
}
=back
=head1 AUTHOR
Originally written by Russ Allbery for Lintian.
=head1 SEE ALSO
lintian(1)
=cut
1;
# Local Variables:
# indent-tabs-mode: nil
# cperl-indent-level: 4
# End:
# vim: syntax=perl sw=4 sts=4 sr et