dart_boundaries 0.3.1
dart_boundaries: ^0.3.1 copied to clipboard
A custom lint package for enforcing feature and layer import boundaries in Dart/Flutter projects.
0.3.1 #
- Widened the
analyzerupper bound from<9.1.0to<15.0.0to pass pub.dev's "up-to-date dependencies" check; actual resolution is unaffected sincecustom_lint_builder/custom_lint_visitorstill bound it to 8.x
0.3.0 #
- Widened
custom_lint_builderto>=0.7.1 <1.0.0andanalyzerto>=7.3.0 <9.1.0, restoring support for Flutter 3.19+ / Dart 3.3+ (previously required Flutter 3.35+ / Dart 3.9+) - Replaced
DiagnosticReporter(analyzer 8.x+ only) withErrorReporterin all rules, which resolves consistently across analyzer 7.3.0–9.0.0 via analyzer's backwards-compatible typedef - Verified against analyzer 7.3.0/custom_lint_builder 0.7.1 and analyzer 9.0.0/custom_lint_builder 0.8.1
- Capped the
analyzerupper bound at<9.1.0(the last versioncustom_lint_visitorhas a matching build for) so unsupported newer analyzer versions failpub getloudly instead of silently resolving to a mismatched build - Added a "Version compatibility" section to the README documenting the supported range and the
dependency_overridesworkaround for newer Flutter/analyzer versions
0.2.0 #
- Upgraded to
custom_lint_builder0.8.1 andanalyzer8.4.0 - Added library-level and
createPluginAPI documentation - Widened
analyzerdependency constraint to>=8.0.0 <15.0.0
0.1.0 #
- Initial release
layer_boundaries: define named layer types withallow/disallowrules;{{ name }}capture groups enable cross-feature detection;default: disallowblocks all cross-type imports unless explicitly allowedno_cross_feature_import: detects direct imports between feature foldersno_banned_imports: blocks specific import paths;pathsis optional (global deny),exclude_pathsfor exemptionsonly_import_from_index: enforces barrel file (index.dart) access pattern- Glob pattern support (
*,**) and capture group syntax ({{ name }}) for all pattern fields - Config validation: unknown keys in
analysis_options.yamlare reported to stderr