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

A utility package for checking dependencies within Dart/Flutter packages.

dart_dependency_checker #

A utility package for checking dependencies within Dart/Flutter packages. This utilities can be used directly by depending on this package or through a command-line dart_dependency_checker_cli wrapper.

Usage #

Install:

dart pub add dart_dependency_checker

Use:

import 'package:dart_dependency_checker/dart_dependency_checker.dart';

void main() {
  const checker = DepsUnusedChecker(
    DepsUnusedParams(
      path: './',
      devIgnores: {'build_runner'},
      mainIgnores: {'meta'},
    ),
  );

  try {
    print('${checker.check()}');
  } on CheckerError catch (e) {
    print(e.message);
  }
}

Future roadmap #

-DepOriginChecker: Utilize dart pub deps -s compact --no-dev to extract the origin of a direct/transitive dependency.

-TransitiveUseChecker: 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

A utility package for checking dependencies within Dart/Flutter packages.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

equatable, yaml

More

Packages that depend on dart_dependency_checker