Skip to main content
fensu rule prints the complete metadata for one rule: its family, severity, whether it is on by default, its source, and its full message and remediation. Use it to understand a code you saw in fensu check output, or to read what a rule claims before you enable or disable it.

Usage

The lookup is case-insensitive, so fensu rule ffs131 works too. When multiple analyzer targets are configured, select the catalogue and policy context explicitly:

Fields

Severity is catalogue metadata declared by the rule. Configuring a rule in warn assigns it to the project’s advisory tier without changing that metadata. Use fensu check --warn to see the effective tier in a run. When the queried code matches configured exact exceptions or path-scoped rule_ignores, fensu rule also prints those active policy declarations and their reasons.

Custom and configured rules

fensu rule reads the whole catalogue for the current repository, so it resolves custom rules once they are configured and native rule packs once activated. It can inspect rules that are ignored or off by default. A custom rule shows its source path:
For an option without a default, Default is required. Defaults come from rule source; current values use a TOML override when present. fensu rule never writes either value back to configuration. An activated pack rule shows its pack and any canonical alias target:

Options

Exit codes

An unknown code reports: