Architecture
High-level overview of Dart Shield.
Architecture
dart_shield operates primarily as a Dart Analyzer Plugin. This means it hooks directly into the standard Dart analysis server used by IDEs (VS Code, IntelliJ) and the dart analyze command.
How it works
- Analysis Server: When you open a project, the Dart Analysis Server starts.
- Plugin Boot: It reads
analysis_options.yamland starts thedart_shieldplugin. - Scanning: As you type or save files,
dart_shieldreceives the file content. - Rules: The content is checked against a set of security rules (regex patterns, entropy checks, etc.).
- Reporting: Issues are reported back to the editor as "Lints" or "Warnings", appearing in your "Problems" tab.