dart-fix-static-analysis-errors
Installation
SKILL.md
Resolving Dart Static Analysis Errors
Contents
- Diagnostic Execution
- Null Safety & Type Resolution
- Flow Analysis & Type Promotion
- Analyzer Configuration
- Workflow: Static Analysis Remediation
- Examples
Diagnostic Execution
Execute the Dart analyzer to identify static errors, warnings, and informational diagnostics across the codebase.
- Run
$ dart analyzeto evaluate all Dart files in the current directory. - Target specific directories or files by appending the path:
$ dart analyze binor$ dart analyze lib/main.dart. - Enforce strictness by failing on info-level issues using the
--fatal-infosflag. - Apply automated quick-fixes for supported diagnostics using
$ dart fix --apply. Preview changes first with$ dart fix --dry-run.