Preview
Some fortitude rules are only available through an opt-in preview
mode to give the community some time to evaluate them and provide
feedback. To enable preview rules, pass the --preview flag to
check,
Preview mode enables a collection of unstable features such as new lint rules and fixes, interface updates, and more. Warnings about deprecated features may turn into errors when using preview mode.
Enabling preview mode
Preview mode can be enabled with the --preview flag on the CLI or by setting
preview = true in your Fortitude configuration file.
Using rules that are in preview
If a rule is marked as preview, it can only be selected if preview mode is
enabled. For example, consider a hypothetical rule, HYP001. If HYP001 were
in preview, it would not be enabled by adding it to the selected rule set.
It also would not be enabled by selecting the HYP category, like so:
Similarly, it would not be enabled via the ALL selector:
However, it would be enabled in any of the above cases if you enabled preview mode:
To see which rules are currently in preview, visit the rules reference.