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
dead_code_analyzer

A command-line tool to identify and clean up dead or unused code in Dart and Flutter projects.

pub.devRemove
ScoresHealth80 (best)41
Maintenance94 (best)15
Quality100 (best)91
Popularity45 (best)22
Community69 (best)6
Compatibility8585
UsageDownloads (30 days)2.9k (best)878
Likes37 (best)14
Pub points160 / 160 (best)140 / 160
GitHub stars23 (best)3
MaintenanceLatest release0.7.2, 11 days ago (best)1.1.7, a year ago
Major versions in 12 months00
Contributors6 (best)1
Publisherleancode.coUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies124 (best)
LicenseAPACHE-2.0BSD-3-CLAUSE
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
  • Supports multiple report formats including TXT, HTML, and Markdown.
  • Provides automated cleanup for files containing only dead or commented-out code.
  • Integrates easily into CI/CD pipelines via GitHub Actions or GitLab CI.
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
  • Current version uses a regex-based analysis which may misreport references for classes with constructors.
  • May produce false positives with string references, dynamic invocations, or JSON serialization.
WarningsNoneNone
ciach vs dead_code_analyzer: which Flutter package should you use? | pubscout