This directory demonstrates the difference between builtin (text matching) and nodejs (semantic) providers.
TestComponent.tsx - Test file with OldButton in different contextsbuiltin-rule.yaml - Rule using builtin provider (text pattern matching)nodejs-rule.yaml - Rule using nodejs provider (semantic analysis)Including false positives from comments and strings.
(Would need proper TypeScript project setup to work correctly)
Open both static reports side-by-side:
# Builtin provider results (shows all text matches)
open builtin-output/static-report/index.html
# nodejs provider results (semantic only)
open nodejs-output/static-report/index.html
Capture a split-screen showing:
Left side: Builtin provider static report highlighting all 6 matches Right side: Annotated TestComponent.tsx showing:
The builtin-output/output.yaml file shows all 6 violations with line numbers.
Simply annotate the TestComponent.tsx file in your editor showing which matches are good (✅) vs false positives (❌).