Skip to content

alint rules

alint rules is the rule kind catalog on the command line. It never reads a config, so it works in any directory, including before you write your first .alint.yml.

Every rule kind, with its categories:

Terminal window
alint rules list

Narrow the list:

Terminal window
alint rules list --category naming
alint rules list --search shebang

The categories and how many kinds each holds:

Terminal window
alint rules categories

One kind: summary, categories, aliases, host capabilities, accepted kind-specific selectors, fix operations, and docs link. An alias resolves to its canonical kind:

Terminal window
alint rules show content_forbidden
Browse the catalog of rule kinds alint ships (config-independent).
Use `alint list` for the rules configured in THIS repo; `alint rules` never reads a config and works
anywhere.
Usage: alint rules [OPTIONS] <COMMAND>
Commands:
list List rule kinds in the catalog, optionally filtered. Reads no config
categories List the rule categories: slug, title, and how many kinds each holds
show Show one rule kind: summary, capabilities, selectors, fixes, and docs. Accepts an
alias (resolves to the canonical kind)
help Print this message or the help of the given subcommand(s)

The global options apply to alint rules too, where they are relevant.