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
detect_unused_code

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

pub.devRemove
ScoresHealth4165 (best)
Maintenance1593 (best)
Quality9194 (best)
Popularity2225 (best)
Community66
Compatibility8585
UsageDownloads (30 days)8781.8k (best)
Likes14 (best)11
Pub points140 / 160160 / 160 (best)
GitHub stars3 (best)2
MaintenanceLatest release1.1.7, a year ago3.7.0, 13 days ago (best)
Major versions in 12 months0 (best)2
Contributors11
PublisherUnverifiedUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies40 (best)
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.
  • 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
  • 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.
  • Can require careful configuration via pubspec.yaml exclusions for generated files or dynamic assets to avoid false positives.
WarningsNoneNone
dead_code_analyzer vs detect_unused_code: which Flutter package should you use? | pubscout