Lintian::Tag::Info - Lintian interface to tag metadata
my $taginfo = Lintian::Tag::Info->new;
This module provides an interface to tag metadata as gleaned from the *.desc files describing the checks. It can be used to retrieve specific metadata elements or to format the tag description.
Loads a tag description from PATH.
Returns the one-letter code for the tag. This will be a letter chosen from E
, W
, I
, or P
, based on the tag severity, and other attributes (such as whether experimental is set). This code will never be O
or X
; overrides and experimental tags are handled separately.
Returns the formatted description (the Info field) for a tag. FORMAT must be either text
or html
and defaults to text
if no format is specified. If text
, returns wrapped paragraphs formatted in plain text with a right margin matching the Text::Wrap default, preserving as verbatim paragraphs that begin with whitespace. If html
, return paragraphs formatted in HTML.
If INDENT is specified, the string INDENT is prepended to each line of the formatted output.
Originally written by Russ Allbery <rra@debian.org> for Lintian.
lintian(1)