strata 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 strata check output, or to read
what a rule claims before you enable or disable it.
Usage
strata rule sfs131 works too.
Fields
| Field | Meaning |
|---|---|
| Header | The code and slug. |
| Family | The rule’s family. |
| Severity | error or warning. |
| Kind | core for shipped rules, custom for your own. |
| Enabled by default | Whether the rule runs without being named explicitly. |
| Source | core, or the file or module a custom rule was loaded from. |
| Message | The one-sentence statement of the violated contract. |
| Remediation | The normal correction, or None provided. if the rule sets none. |
Custom and configured rules
strata rule reads the whole catalogue for the current repository, so it resolves
custom rules once they are configured, and it can inspect
rules that are ignored or off by default. A custom rule shows its source path:
Options
| Option | Values | Default | Purpose |
|---|---|---|---|
--color | auto, always, never | auto | ANSI color behavior. Respects NO_COLOR. |
Exit codes
| Code | Meaning |
|---|---|
0 | The rule was found and printed. |
2 | The code is not a known rule. |

