---
name: dart-analyze
description: "Use when adopting Dart analyzer to assess this standard: Catch Dart type errors before release"
---

# Apply Dart analyzer

Run the analyzer with versioned analysis options. Check sound null safety and promote the agreed warnings to CI failures across packages.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by Dart analyzer.
2. Use Dart analyzer in this repository to meet this standard: Catch Dart type errors before release. Run the analyzer with versioned analysis options. Check sound null safety and promote the agreed warnings to CI failures across packages. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://dart.dev/tools/dart-analyze) for configuration and prerequisites.

## Tool invocation

```
dart analyze
```
