Expand description
Static lint passes complementary to the pointer checker.
Each lint:
- consumes the fully-compiled
CompiledScriptobjects (read-only), - emits
Diagnostics atSeverity::Warning, - never feeds back into codegen or the script writer.
Currently included:
check_unused_locals— any local variable (including parameters) that is declared/written but never read.check_unreachable_code— any source statement whose emitted instructions are unreachable from node 0 of the CFG.
Both lints attach help/suggestion blocks where the fix is mechanical enough to print a before/after diff; otherwise they fall back to a prose message.