dart_dependency_checker 0.0.1 dart_dependency_checker: ^0.0.1 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 -sgit https://github.com/akaiser/dart_dependency_checker.git
# 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
# Or
for d in */ ; do (cd $d && dart_dependency_checker); done;
Future roadmap #
- Mode
dep-origin
: Utilizedart 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.