Skip to main content

Fixing Violations

For each violation Regal is able to detect, there is a documentation page explaining the issue in detail and how to fix it. For example, here's the one for the prefer-some-in-iteration rule.

Some rules are automatically fixable, meaning that Regal can fix the violation for you. To automatically fix all supported violations, run:

regal fix <path> [path [...]] [flags]

Currently, the following rules are automatically fixable:


Need to fix individual violations? Checkout the editors Regal supports here.