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
cognitive_complexity

Algorithmic Cognitive Complexity calculation and Data-Flow analysis library and CLI tools.

pub.devRemove
ScoresHealth80 (best)74
Maintenance94 (best)86
Quality100 (best)94
Popularity45 (best)37
Community69 (best)63
Compatibility8585
UsageDownloads (30 days)2.9k14k (best)
Likes37 (best)7
Pub points160 / 160160 / 160
GitHub stars2382 (best)
MaintenanceLatest release0.7.2, 11 days ago (best)2.0.1, 6 weeks ago
Major versions in 12 months0 (best)2
Contributors6 (best)5
Publisherleancode.cokevmoo.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies127 (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
  • Deterministic complexity engine without external LLM calls or token latency.
  • Includes data-flow analysis, acyclic file decomposition, and git diff analysis.
  • Provides ready-to-use GitHub Action integration.
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
  • Requires a minimum Dart SDK version of 3.12.0.
WarningsNoneNone
ciach vs cognitive_complexity: which Flutter package should you use? | pubscout