Skip to main content

Rule lifecycle and autofix flow

This sequence diagram models what happens from lint invocation through optional typed lookup, reporting, and fix/suggestion output.

Safety checkpoints​

  • Syntax-first guards prevent expensive checker access when unnecessary.
  • Type operations are wrapped in getTypeOfNode(...), which returns null instead of crashing when services are missing.
  • Autofix only applies when parse-safe and semantic-safe constraints are met.

Maintainer reading guide​

  • Focus on the loop body to reason about performance.
  • Treat checker calls as optional/guarded operations, not defaults.
  • Prefer local, mechanical rewrites over broad structural edits.