Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeciach

Dead code detector for Dart and Flutter that finds and removes unused declarations.

pub.devRemove
detect_unused_code

Fast, zero-dependency Dart and Flutter dead code, assets, and packages remediation engine.

pub.devRemove
ScoresHealth80 (best)65
Maintenance94 (best)93
Quality100 (best)94
Popularity45 (best)25
Community69 (best)6
Compatibility8585
UsageDownloads (30 days)2.9k (best)1.8k
Likes37 (best)11
Pub points160 / 160160 / 160
GitHub stars23 (best)2
MaintenanceLatest release0.7.2, 11 days ago (best)3.7.0, 14 days ago
Major versions in 12 months0 (best)2
Contributors6 (best)1
Publisherleancode.coUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies120 (best)
LicenseAPACHE-2.0MIT
Setup effortLowLow
JudgementStrengths
  • Supports automatic removal of found dead code with interactive prompts or force options
  • Understands framework entry points, generated files, and avoids many false positives
  • Integrates into multiple CI formats like GitHub Actions, Azure, and SARIF
  • Zero external dependencies and fast AST-based analysis.
  • Interactive terminal dashboard (TUI) with dry-run previews and instant rollback.
  • Covers 13 code quality points including commented files, dead classes, assets, and dependencies.
Weaknesses
  • Static heuristic-based analysis can still yield false positives requiring manual code review
  • May struggle to detect references used only through dynamic code or complex reflection
  • Can require careful configuration via pubspec.yaml exclusions for generated files or dynamic assets to avoid false positives.
WarningsNoneNone
ciach vs detect_unused_code: which Flutter package should you use? | pubscout