Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedead_code_analyzer

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

pub.devRemove
undead

Reachability and dead/unused declaration analysis for Dart and Flutter packages.

pub.devRemove
ScoresHealth4172 (best)
Maintenance1585 (best)
Quality91 (best)81
Popularity2240 (best)
Community663 (best)
Compatibility8585
UsageDownloads (30 days)8785.6k (best)
Likes1419 (best)
Pub points140 / 160150 / 160 (best)
GitHub stars381 (best)
MaintenanceLatest release1.1.7, a year ago0.1.2, 6 weeks ago (best)
Major versions in 12 months00
Contributors15 (best)
PublisherUnverifiedkevmoo.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies4 (best)6
LicenseBSD-3-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • 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.
  • Supports dual analysis modes (open-world library and closed-app)
  • Framework adapters for Flutter, build_runner, and package test
  • Co-invoked test hazard protection to avoid false-positive test deletions
  • Granular suppressions via code directives
Weaknesses
  • 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.
  • May require configuration for complex dynamic dependency injection or reflection-heavy code patterns
WarningsNoneNone
dead_code_analyzer vs undead: which Flutter package should you use? | pubscout