import_rules 0.0.1 copy "import_rules: ^0.0.1" to clipboard
import_rules: ^0.0.1 copied to clipboard

A lint plugin for the Dart analyzer that enforces custom import rules in your projects. Control which files can import which other files using simple YAML configuration, enabling everything from simp [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add import_rules

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  import_rules: ^0.0.1

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:import_rules/import_rules.dart';
3
likes
0
points
657
downloads

Publisher

verified publishernorelease.dev

Weekly Downloads

A lint plugin for the Dart analyzer that enforces custom import rules in your projects. Control which files can import which other files using simple YAML configuration, enabling everything from simple allow/disallow lists to complex module dependency constraints for architectural patterns such as layered architecture, feature isolation, and encapsulation.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analysis_server_plugin, analyzer, glob, logging, meta, path, yaml

More

Packages that depend on import_rules