.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Lintian::Profile 3" .TH Lintian::Profile 3 2024-02-05 "Lintian v2.117.0" "Debian Package Checker" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Lintian::Profile \- Profile parser for Lintian .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& my $profile = Lintian::Profile\->new (\*(Aqdebian\*(Aq); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" Lintian::Profile handles finding, parsing and implementation of Lintian Profiles as well as loading the relevant Lintian checks. .SH "INSTANCE METHODS" .IX Header "INSTANCE METHODS" .ie n .IP $prof\->\fBknown_aliases()\fR 4 .el .IP \f(CW$prof\fR\->\fBknown_aliases()\fR 4 .IX Item "$prof->known_aliases()" Returns a hash with old names that have new names. .ie n .IP $prof\->profile_list 4 .el .IP \f(CW$prof\fR\->profile_list 4 .IX Item "$prof->profile_list" Returns a list ref of the (normalized) names of the profile and its parents. The first element of the list is the name of the profile itself, the second is its parent and so on. .Sp Note: This list is a reference. The contents should not be modified. .IP our_vendor 4 .IX Item "our_vendor" .PD 0 .ie n .IP $prof\->name 4 .el .IP \f(CW$prof\fR\->name 4 .IX Item "$prof->name" .PD Returns the name of the profile, which may differ from the name used to create this instance of the profile (e.g. due to symlinks). .ie n .IP "load ([$profname[, $ipath[, $extra]]])" 4 .el .IP "load ([$profname[, \f(CW$ipath\fR[, \f(CW$extra\fR]]])" 4 .IX Item "load ([$profname[, $ipath[, $extra]]])" Loads a new profile. \f(CW$profname\fR is the name of the profile and \f(CW$ipath\fR is a list reference containing the path to one (or more) Lintian "roots". .Sp If \f(CW$profname\fR is \f(CW\*(C`undef\*(C'\fR, the default vendor will be loaded based on Dpkg::Vendor::get_current_vendor. .Sp If \f(CW$ipath\fR is not given, a default one will be used. .ie n .IP $prof\->known_tags 4 .el .IP \f(CW$prof\fR\->known_tags 4 .IX Item "$prof->known_tags" .PD 0 .ie n .IP $prof\->enabled_tags 4 .el .IP \f(CW$prof\fR\->enabled_tags 4 .IX Item "$prof->enabled_tags" .ie n .IP "$prof\->get_tag ($name)" 4 .el .IP "\f(CW$prof\fR\->get_tag ($name)" 4 .IX Item "$prof->get_tag ($name)" .PD Returns the Lintian::Tag for \f(CW$tag\fR if known. Otherwise it returns undef. .IP get_current_name 4 .IX Item "get_current_name" .PD 0 .IP "set_durable ($tag)" 4 .IX Item "set_durable ($tag)" .ie n .IP "$prof\->is_durable ($tag)" 4 .el .IP "\f(CW$prof\fR\->is_durable ($tag)" 4 .IX Item "$prof->is_durable ($tag)" .PD Returns a false value if the tag has been marked as "non-overridable". Otherwise it returns a truth value. .ie n .IP $prof\->known_checks 4 .el .IP \f(CW$prof\fR\->known_checks 4 .IX Item "$prof->known_checks" .PD 0 .ie n .IP $prof\->enabled_checks 4 .el .IP \f(CW$prof\fR\->enabled_checks 4 .IX Item "$prof->enabled_checks" .ie n .IP "$prof\->enable_tag ($name)" 4 .el .IP "\f(CW$prof\fR\->enable_tag ($name)" 4 .IX Item "$prof->enable_tag ($name)" .PD Enables a tag. .ie n .IP "$prof\->disable_tag ($name)" 4 .el .IP "\f(CW$prof\fR\->disable_tag ($name)" 4 .IX Item "$prof->disable_tag ($name)" Disable a tag. .IP read_profile 4 .IX Item "read_profile" .PD 0 .IP display_level_for_tag 4 .IX Item "display_level_for_tag" .IP tag_is_enabled(TAG) 4 .IX Item "tag_is_enabled(TAG)" .IP "display(OPERATION, RELATION, VISIBILITY)" 4 .IX Item "display(OPERATION, RELATION, VISIBILITY)" .PD Configure which tags are displayed by visibility. OPERATION is \f(CW\*(C`+\*(C'\fR to display the indicated tags, \f(CW\*(C`\-\*(C'\fR to not display the indicated tags, or \f(CW\*(C`=\*(C'\fR to not display any tags except the indicated ones. RELATION is one of \f(CW\*(C`<\*(C'\fR, \f(CW\*(C`<=\*(C'\fR, \f(CW\*(C`=\*(C'\fR, \f(CW\*(C`>=\*(C'\fR, or \f(CW\*(C`>\*(C'\fR. The OPERATION will be applied to all values of visibility that match the given RELATION on the VISIBILITY argument. If either of those arguments are undefined, the action applies to any value for that variable. For example: .Sp .Vb 1 \& $tags\->display(\*(Aq=\*(Aq, \*(Aq>=\*(Aq, \*(Aqerror\*(Aq); .Ve .Sp turns off display of all tags and then enables display of any tag of visibility error or higher. .Sp .Vb 1 \& $tags\->display(\*(Aq+\*(Aq, \*(Aq>\*(Aq, \*(Aqwarning\*(Aq); .Ve .Sp adds to the current configuration display of all tags with a visibility higher than warning. .Sp .Vb 1 \& $tags\->display(\*(Aq\-\*(Aq, \*(Aq=\*(Aq, \*(Aqinfo\*(Aq); .Ve .Sp turns off display of tags of visibility info. .Sp This method throws an exception on errors, such as an unknown visibility or an impossible constraint (like \f(CW\*(C`> serious\*(C'\fR). .IP search_space 4 .IX Item "search_space" .SH AUTHOR .IX Header "AUTHOR" Originally written by Niels Thykier for Lintian. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBlintian\fR\|(1)