Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedetect_unused_code

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

pub.devRemove
leancode_lint

An opinionated set of high-quality, robust, and up-to-date lint rules used at LeanCode.

pub.devRemove
ScoresHealth6583 (best)
Maintenance93 (best)88
Quality94 (best)85
Popularity2572 (best)
Community680 (best)
Compatibility8585
UsageDownloads (30 days)1.8k34k (best)
Likes1178 (best)
Pub points160 / 160160 / 160
GitHub stars291 (best)
MaintenanceLatest release3.7.0, 14 days ago (best)28.0.0, 5 weeks ago
Major versions in 12 months2 (best)8
Contributors135 (best)
PublisherUnverifiedleancode.co
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies0 (best)7
LicenseMITAPACHE-2.0
Setup effortLowLow
JudgementStrengths
  • 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.
  • Includes helpful custom lints and quick fixes for common architectural mistakes.
  • Supports custom configuration via a dedicated plugin package.
  • Actively maintained with regular updates for newer Dart and analyzer versions.
Weaknesses
  • Can require careful configuration via pubspec.yaml exclusions for generated files or dynamic assets to avoid false positives.
  • Strict opinionated rules may require significant refactoring on existing legacy codebases.
  • Requires proper setup of analyzer plugins in analysis_options.yaml.
WarningsNoneNone
detect_unused_code vs leancode_lint: which Flutter package should you use? | pubscout