Terminal demo
$ pubdoctor check
PubDiagnose / Diagnose your Dart dependencies.
check: my_app
ATTENTION REQUIRED — 2 finding(s), 1 override(s).
Dependencies: 12 direct, 4 dev, 86 transitive
[WARNING PD1301] Direct import not declared
Package "collection" is imported directly but is not declared…
→ Add "collection" to dependencies, then run `dart pub get`.
Features
- Health check — one command for conflicts, overrides, imports, unused, outdated.
- Evidence-first — stable PD codes with remediation.
- Safe fixes — propose by default; transactional apply with rollback.
- CI ready — `--ci`, `--fail-on`, baselines.
- Workspaces — first-class Dart pub monorepo analysis.
Install
dart pub global activate pubdiagnose
pubdoctor check