---
name: "Lintian::Profile"
section: "3"
platform: "linux"
package: "lintian"
version: "2.122.0"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Lintian::Profile"
---

# Lintian::Profile(3)

Profile parser for Lintian

## NAME

Lintian::Profile - Profile parser for Lintian

## SYNOPSIS

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

## DESCRIPTION

Lintian::Profile handles finding, parsing and implementation of Lintian Profiles as well as loading the relevant Lintian checks.

## INSTANCE METHODS

- $prof-\>**known\_aliases()**

  Returns a hash with old names that have new names.

- $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.

  Note: This list is a reference. The contents should not be modified.

- our\_vendor

  - $prof-\>name

  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).

- 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.

- 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.

- $prof-\>known\_checks

  - $prof-\>enabled\_checks

  - $prof-\>enable\_tag ($name)

  Enables a tag.

- $prof-\>disable\_tag ($name)

  Disable a tag.

- read\_profile

  - display\_level\_for\_tag

  - tag\_is\_enabled(TAG)

  - display(OPERATION, RELATION, VISIBILITY)

  Configure which tags are displayed by visibility.  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"`).

- search\_space

  ## AUTHOR

Originally written by Niels Thykier \<niels@thykier.net\> for Lintian.

## SEE ALSO

[**lintian**(1)](/lintian/1.md)
