arch_guard_lint 0.2.0
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 toallowed_importsin the file the config came from. This coversarch_guard.yaml, thepubspec.yamlsection and legacydep_graph.yaml. For a preset layer, it writes an override that keeps the preset's list.
- Remove this import on every warning. For a conditional import, only the
- New:
circular_dependency. A warning on the one import whose removal breaks (or shrinks most) each cycle among the files in the package'slib/, 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_violationnow also checks the URIs in conditional imports and exports (import 'a.dart' if (dart.library.io) 'b.dart'), asforbidden_packagealready did. - Legacy config: editing a legacy
dep_graph.yamlnow takes effect without restarting the analysis server. - Development: the
analyzer_testingdev 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_violationandforbidden_packagewarnings fromarch_guard.yaml, in the IDE anddart analyze. Honoursarch_guard_baseline.json.