Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecodemod

Write and run automated code modifications and refactors on a codebase.

pub.devRemove
lint_staged

Run linters and custom commands on git staged files for Flutter and Dart projects

pub.devRemove
ScoresHealth74 (best)44
Maintenance80 (best)5
Quality8596 (best)
Popularity4242
Community80 (best)17
Compatibility8585
UsageDownloads (30 days)1.9k16k (best)
Likes37 (best)9
Pub points125 / 160150 / 160 (best)
GitHub stars65 (best)8
MaintenanceLatest release1.2.2, 8 weeks ago (best)0.5.1, 3 years ago
Major versions in 12 months00
Contributors26 (best)3
Publisherworkiva.comUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies117 (best)
LicenseUNKNOWNAPACHE-2.0
Setup effortLowLow
JudgementStrengths
  • Leverages package:analyzer APIs for robust AST traversal and modification.
  • Interactive CLI handles user confirmation for patches.
  • Includes testing helpers like PackageContextForTest for verifying resolved AST suggestors.
  • Speeds up linting by only checking files that are about to be committed
  • Supports custom glob pattern matching for file filtering
  • Provides built-in backup stashing and error recovery
Weaknesses
  • Requires familiarity with the analyzer package API for complex AST-based transforms.
  • Requires manual configuration of git hooks (such as using Husky)
  • Behavior depends on external git commands and local executable environments
WarningsNoneNone
codemod vs lint_staged: which Flutter package should you use? | pubscout