Next: , Previous: , Up: Utilities   [Contents][Index]


6.7 Invoking guix lint

The guix lint is meant to help package developers avoid common errors and use a consistent style. It runs a number of checks on a given set of packages in order to find common mistakes in their definitions. Available checkers include (see --list-checkers for a complete list):

synopsis
description

Validate certain typographical and stylistic rules about package descriptions and synopses.

inputs-should-be-native

Identify inputs that should most likely be native inputs.

source
home-page
source-file-name

Probe home-page and source URLs and report those that are invalid. Check that the source file name is meaningful, e.g. is not just a version number or “git-checkout”, and should not have a file-name declared (see origin Reference).

formatting

Warn about obvious source code formatting issues: trailing white space, use of tabulations, etc.

The general syntax is:

guix lint options package

If no package is given on the command line, then all packages are checked. The options may be zero or more of the following:

--checkers
-c

Only enable the checkers specified in a comma-separated list using the names returned by --list-checkers.

--list-checkers
-l

List and describe all the available checkers that will be run on packages and exit.