Rules
Each lint rule walks the parsed AST looking for a specific pattern. When a rule
fires it produces a Diagnostic — the source range, a message,
and (when applicable) a machine-applicable Fix that replaces a byte
range with new text.
Fixes are byte-level text replacements, not AST rewrites. That means a fix only
touches the affected source range and leaves the surrounding formatting alone.
Once --fix has been applied the user is expected to run the
monkey-c-formatter if they want whitespace normalised.
Categories
| Rule | Auto-fix | Notes |
|---|---|---|
unneeded-parens | ✅ | Removes redundant parentheses |
import-order | ⚠️ | Suppressed when comments interleave |