architecture

fun architecture(block: KontureContext.() -> Unit)

Top-level entry point for defining and running architecture rule blocks.

This function is an ergonomic shorthand for Konture.architecture.

Parameters

block

DSL configuration block scoped to KontureContext.


fun architecture(graph: ProjectGraph, block: KontureContext.() -> Unit)

Top-level entry point for defining and running architecture rule blocks against a specific ProjectGraph.

This function is an ergonomic shorthand for Konture.architecture.

Parameters

graph

The specific ProjectGraph to evaluate rules against.

block

DSL configuration block scoped to KontureContext.


Unified multi-rule block supporting modules, classes, and layered architecture validations. Runs every declared suite and aggregates all violations before failing.

Can also be called directly via the top-level architecture shorthand function.


Unified multi-rule block supporting modules, classes, and layered architecture validations against a specific ProjectGraph. Runs every declared suite and aggregates all violations before failing.