aports-lint(1) General Commands Manual aports-lint(1)

aports-lint - A linter for Alpine Linux's ports (aports)

aports-lint <apkbuild...>

aports-lint is a linter for packages in aports and their relation to other packages in the same repo, it searches for instances of policy violations, duplicate packages and others. See alint(5) under the aports-lint section for an explanation of each violation that aports-lint checks for.

aports-lint will print the policy violations found and exit 1, if no violations are found then nothing will be printed and it will exit 0.

aports-lint will print to stdout whenever a policy violation is found in the following format

SEVERITYCERTAINITY:[TAG]:PATH::MSG
  • SEVERITY refers to how severe a violation is, ranging from S to M.
  • CERTAINITY refers to how likely it is not a false positive, ranging from C to P
  • TAG refers to the tag of the violation, see alint(5) for more details.
  • PATH refers to the path given for apkbuild-lint to check.
  • MSG is a short message meant for humans to know what is the violation.

A slower yet more accurate version of the internal find_repo function used to detect whether a package is present in an upper repo can be accessed by setting the EXPENSIVE_FIND_REPO variable. Using it will cause time needed to process an APKBUILD to jump from miliseconds to seconds and is not recommended if providing feedback to the user in a timely manner is required (like running this as a vim ALE plugin).

Maintained by Leo <thinkabit.ukim@gmail.com>

alint(5) apkbuild-lint(1)

2024-10-14