arch_guard_lint 0.2.0 copy "arch_guard_lint: ^0.2.0" to clipboard
arch_guard_lint: ^0.2.0 copied to clipboard

Analyzer plugin that shows arch_guard layer violations, forbidden package imports and circular dependencies as warnings in your IDE and in dart analyze, with quick fixes.

0.2.0 #

  • New: quick fixes.
    • Remove this import on every warning. For a conditional import, only the if (…) '…' clause is removed.
    • Allow layer X to import Y on layer_violation: adds the layer to allowed_imports in the file the config came from. This covers arch_guard.yaml, the pubspec.yaml section and legacy dep_graph.yaml. For a preset layer, it writes an override that keeps the preset's list.
  • New: circular_dependency. A warning on the one import whose removal breaks (or shrinks most) each cycle among the files in the package's lib/, with a quick fix to remove it.
    • Cycles in the baseline stay quiet.
    • It works without an arch_guard.yaml.
    • Turn it off with diagnostics: circular_dependency: false.
  • Requires arch_guard ^1.8.0.

0.1.2 #

  • Conditional imports: layer_violation now also checks the URIs in conditional imports and exports (import 'a.dart' if (dart.library.io) 'b.dart'), as forbidden_package already did.
  • Legacy config: editing a legacy dep_graph.yaml now takes effect without restarting the analysis server.
  • Development: the analyzer_testing dev dependency floor is raised to 0.1.7, the first version the tests compile with. CI now analyses with the lowest allowed dependencies.

0.1.1 #

  • Add an example (example/README.md) and library documentation.

0.1.0 #

  • First release: layer_violation and forbidden_package warnings from arch_guard.yaml, in the IDE and dart analyze. Honours arch_guard_baseline.json.
1
likes
160
points
196
downloads

Documentation

Documentation
API reference

Publisher

verified publisherpiyushanand.in

Weekly Downloads

Analyzer plugin that shows arch_guard layer violations, forbidden package imports and circular dependencies as warnings in your IDE and in dart analyze, with quick fixes.

Repository (GitHub)
View/report issues
Contributing

Topics

#clean-architecture #static-analysis #lints

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin, arch_guard, glob, path, yaml, yaml_edit

More

Packages that depend on arch_guard_lint