dart-static-analysis

Installation
SKILL.md

Analyzing and Linting Dart Code

Contents

Configuring Analysis Options

Control static analysis by placing an analysis_options.yaml file at the root of your package.

  • Enforce Strict Type Checks: Always enable strict-casts, strict-inference, and strict-raw-types in the analyzer section to catch implicit dynamic casts and un-inferred types at compile time.
  • Configure Formatting: Define dart format rules within the formatter section (e.g., page_width and trailing_commas).
  • Exclude Generated Code: Use the exclude key to ignore generated files (e.g., **/*.g.dart, **/*.freezed.dart) to prevent false positives.

Managing Linter Rules

Related skills
Installs
72
GitHub Stars
214
First Seen
Mar 17, 2026