dart-run-static-analysis

Run dart analyze to detect diagnostics and apply automated fixes with dart fix.

Updated Jul 23, 2025
One-click install
npx skills add https://github.com/derrik-fleming/dotfiles --skill dart-run-static-analysis-derrik-fleming
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dart-run-static-analysis
Source: https://github.com/derrik-fleming/dotfiles/tree/main/private_dot_agents/skills/dart-run-static-analysis
Command: npx skills add https://github.com/derrik-fleming/dotfiles --skill dart-run-static-analysis-derrik-fleming

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Dart projects accumulate lint violations, type errors, and outdated API usages that are tedious to find and fix manually. This Skill provides a structured workflow for running static analysis, configuring the analyzer, suppressing false positives, and applying automated fixes before committing code. ## Core Features & Use Cases - Static Analysis Execution: Run dart analyze via CLI or MCP tools to surface errors, warnings, and info-level diagnostics, with optional --fatal-infos enforcement. - Automated Fixes: Preview changes with dart fix --dry-run, then apply mechanical fixes and Dart 3 migrations with dart fix --apply, followed by dart format. - Analyzer Configuration: Set up analysis_options.yaml with strict type checks, linter rules, formatter settings, exclusions, and plugin support. - Use Case: Before committing a Flutter feature branch, run the analysis workflow to catch strict-cast violations, apply automated fixes for deprecated APIs, and verify a clean diagnostic report. ## Quick Start Ask the AI to run dart analyze on the project, review the reported diagnostics, and apply automated fixes with dart fix.

Frequently Asked Questions about dart-run-static-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does dart fix not fix a reported lint issue?▼

dart fix only applies fixes for rules that have automated quick fixes and are enabled in analysis_options.yaml. Verify the corresponding linter rule is enabled, then rerun the dry run to confirm the fix is available.