GovernanceEngine class

Validates an ArchitectureGraph against configurable architecture contracts.

Contracts are sourced from migrator_config.yaml under the governance: key. Supported rules: forbidden layer dependencies, max dependency fan-out, and max dependency depth.

Constructors

GovernanceEngine(ArchitectureGraph graph, Map<String, dynamic> config)
Creates an engine that validates graph against config.

Properties

config Map<String, dynamic>
Parsed governance: section from migrator_config.yaml.
final
graph ArchitectureGraph
The graph to validate.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate() List<GovernanceViolation>
Runs all configured governance rules and returns every violation found.

Operators

operator ==(Object other) bool
The equality operator.
inherited