dart_dependency_checker

Creator: coderz1093

Last updated:

0 purchases

dart_dependency_checker Image
dart_dependency_checker Images

Languages

Categories

Add to Cart

Description:

dart dependency checker

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
copied to clipboard
Use:
import 'package:dart_dependency_checker/dart_dependency_checker.dart';

void main() {
const depsUnusedChecker = DepsUnusedChecker(
DepsUnusedParams(
path: '.',
mainIgnores: {'meta'},
devIgnores: {'build_runner'},
fix: true, // Danger zone! Use with caution.
),
);

const transitiveUseChecker = TransitiveUseChecker(
TransitiveUseParams(
path: '.',
mainIgnores: {},
devIgnores: {'args', 'convert'},
),
);

try {
print(depsUnusedChecker.check());
print(transitiveUseChecker.check());
} on CheckerError catch (e) {
print(e.message);
}
}
copied to clipboard
Future roadmap #
-DepOriginChecker: Utilize dart pub deps -s compact --no-dev to extract the origin of a direct/transitive
dependency.
License #
See the LICENSE file.
Version history #
See the CHANGELOG.md file.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.