RuleSet

class RuleSet

Encapsulates a reusable collection of architectural rules and policies.

Rule sets can be defined using architectureRules, composed using plus or apply, executed standalone via check or verify, or imported into an architecture block.

Properties

Link copied to clipboard
val description: String? = null

Optional human-readable rationale or description of the rule set.

Link copied to clipboard
val name: String? = null

Optional human-readable name or identifier for this rule set.

Functions

Link copied to clipboard
fun check()

Executes all rules and assertions in this rule set against the default ProjectGraph.

Link copied to clipboard
operator fun plus(other: RuleSet): RuleSet

Combines this rule set with other into a new composite RuleSet.

Link copied to clipboard
fun verify()

Alias for check.