dart_dependency_checker 0.0.3 copy "dart_dependency_checker: ^0.0.3" to clipboard
dart_dependency_checker: ^0.0.3 copied to clipboard

Checks declared but unused dependencies within Dart/Flutter packages.

dart_dependency_checker #

Checks declared but unused dependencies within Dart/Flutter packages.

Current Todos #

  • Arguments and messaging needs to be improved.
  • Tests...

Usage #

# Install
dart pub global activate dart_dependency_checker

# Use
dart_dependency_checker deps-unused

# Or
dart_dependency_checker deps-unused -p /some/package/root

# Or
dart_dependency_checker deps-unused -p /some/package/root --dev-ignores lints,build_runner,json_serializable

# In a wild mono repo environment
melos exec -c1 -- dart_dependency_checker deps-unused

# Or
for d in */ ; do (cd $d && dart_dependency_checker deps-unused); done;

Future roadmap #

  • Mode dep-origin: Utilize dart pub deps -s compact --no-dev to extract the origin of a direct/transitive dependency.
  • Mode transitive-use: Direct use of undeclared/transitive dependencies.

License #

See the LICENSE file.

Version history #

See the CHANGELOG.md file.

3
likes
0
pub points
26%
popularity

Publisher

verified publisher2ohm.de

Checks declared but unused dependencies within Dart/Flutter packages.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, equatable, yaml

More

Packages that depend on dart_dependency_checker