Lintian::Profile(3)

πŸ’– Lintian::Profile β€” the profile parser, bestie πŸ’–

okay so this is Lintian::Profile(3) from the Debian Package Checker (that's the Lintian manual section 3, iykyk), and it's literally the whole profile situation. buckle up πŸŽ€


✨ NAME ✨

Lintian::Profile β€” profile parser for Lintian

✨ SYNOPSIS ✨

my $profile = Lintian::Profile->new ('debian');

✨ DESCRIPTION ✨

Lintian::Profile is the main character when it comes to finding, parsing and implementing Lintian Profiles, plus it handles loading the relevant Lintian checks. no cap, that's the whole job description 🫢


πŸ‘‘ INSTANCE METHODS πŸ‘‘

$prof->known_aliases()

hands you a hash of old names that got new names. glow-up central ✨

$prof->profile_list

returns a list ref of the (normalized) names of the profile and its parents. first element of the list = the name of the profile itself, second = its parent, and so on down the family tree 🌸

⚠️ note: this list is a reference. do not modify the contents. hands off the merch, bestie πŸ’…

our_vendor

$prof->name

returns the name of the profile, which may differ from the name you used to create this instance of the profile (e.g. due to symlinks). sneaky lil thing 😭

load ([$profname[, $ipath[, $extra]]])

loads a new profile. $profname is the name of the profile, and $ipath is a list reference containing the path to one (or more) Lintian "roots".

  • if $profname is undef, the default vendor will be loaded based on Dpkg::Vendor::get_current_vendor.
  • if $ipath is not given, a default one will be used.

$prof->known_tags

$prof->enabled_tags

$prof->get_tag ($name)

returns the Lintian::Tag for $tag if known. otherwise it returns undef. that's it, that's the vibe πŸ™ˆ

get_current_name

set_durable ($tag)

$prof->is_durable ($tag)

returns a false value if the tag has been marked as "non-overridable". otherwise it returns a truth value. vibe check on the tag, basically 🌈

$prof->known_checks

$prof->enabled_checks

$prof->enable_tag ($name)

enables a tag. slay, we love an enabler (in the literal sense) πŸ’–

$prof->disable_tag ($name)

disable a tag. bye girl πŸ‘‹

read_profile

display_level_for_tag

tag_is_enabled(TAG)

display(OPERATION, RELATION, VISIBILITY)

configure which tags are displayed by visibility. here's the breakdown, no gatekeeping πŸ”₯

  • OPERATION is "+" to display the indicated tags, "-" to not display the indicated tags, or "=" to not display any tags except the indicated ones.
  • RELATION is one of "<", "<=", "=", ">=", or ">".
  • 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:

$tags->display('=', '>=', 'error');

turns off display of all tags and then enables display of any tag of visibility error or higher.

$tags->display('+', '>', 'warning');

adds to the current configuration display of all tags with a visibility higher than warning.

$tags->display('-', '=', 'info');

turns off display of tags of visibility info.

πŸ’€ this method throws an exception on errors, such as an unknown visibility or an impossible constraint (like "> serious"). so like, be normal about it.

search_space


🌟 AUTHOR 🌟

Originally written by Niels Thykier <niels@thykier.net> for Lintian. king behavior πŸ‘‘

🌟 SEE ALSO 🌟


and that's the whole page, bestie πŸ¦‹ this was Lintian v2.139.0ubuntu2, dated 2026-10-08, living in Lintian::Profile(3) β€” periodt πŸ’…πŸ’œ

πŸ“¦ where this page comes from