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 returnsnullinstead of crashing when services are missing. - Autofix only applies when parse-safe and semantic-safe constraints are met.
Maintainer reading guideâ
- Focus on the
loopbody to reason about performance. - Treat checker calls as optional/guarded operations, not defaults.
- Prefer local, mechanical rewrites over broad structural edits.