alpm-lint-check(1) General Commands Manual alpm-lint-check(1)

alpm-lint-check - Run lints on a file or directory

alpm-lint check [-s|--scope] [-v|--verbose]... [-f|--format] [-q|--quiet]... [-p|--pretty] [-l|--level] [-c|--config] [-o|--output] [-h|--help] [DIR]

Run lints on a file or directory.

By default, `alpm-lint` will try to determine the current linting scope based on the provided filename or on available files in the provided directory.

Explicitly define the linting scope.

Using this option overrides the automatic detection.

Possible values:

  • source-repository: Lint rules with this scope are specific to an [alpm-source-repo]
  • package: Lint rules with this scope are specific to an [alpm-package]
  • build-info: Lint rules with this scope are specific to a single [BUILDINFO] file
  • package-build: Lint rules with this scope are specific to a single [PKGBUILD] file
  • package-info: Lint rules with this scope are specific to a single [PKGINFO] file
  • source-info: Lint rules with this scope are specific to a single [SRCINFO] file
More output per occurrence
The output format to use.

If none is provided, any issues will be printed in human readable form.

Possible values:

  • text: Human readable text
  • json: The JSON output format
Less output per occurrence
Pretty-print the output.

Has no effect if the output format can not be pretty printed.

The level of lints to consider.

Any lints with this level and above (more severe) will be shown. If such lints are found, the command will return with an non-zero exit code.

Possible values:

  • error: Lint rules leading to errors
  • deny: Lint rules leading to denials
  • warn: Lint rules leading to warnings
  • suggest: Lint rules leading to suggestions
Supply a lint config path.

This overwrites any options from the project wide configuration file.

Optional output file path. If not provided, output goes to stdout
Print help (see a summary with '-h')
[DIR]
An optional path to a file or directory to be linted
alpm-lint-check