Package-level declarations

Types

Link copied to clipboard
@Serializable
data class RuleMetadata(val id: String, val description: String? = null, val severity: Severity = Severity.ERROR, val tags: Set<String> = emptySet())

Represents structured metadata associated with an architectural rule definition.

Link copied to clipboard
@Serializable
enum class Severity : Enum<Severity>

Represents the severity level of an architectural rule violation.

Link copied to clipboard
@Serializable
data class SourceLocation(val filePath: String, val line: Int? = null, val column: Int? = null)

Represents a location in source code associated with a rule violation or subject.

Link copied to clipboard
@Serializable
sealed interface Subject

Sealed hierarchy representing a target element or subject of an architectural rule.

Link copied to clipboard
@Serializable
enum class SuppressionKind : Enum<SuppressionKind>

Categorization of the origin/mechanism used to suppress an architectural violation.

Link copied to clipboard
@Serializable
data class SuppressionMetadata(val kind: SuppressionKind, val reason: String? = null, val location: SourceLocation? = null)

Structured metadata describing why and where an architectural violation was suppressed.

Link copied to clipboard
@Serializable
data class Violation(val ruleId: String, val subject: Subject, val target: Subject? = null, val sourceLocation: SourceLocation? = subject.location, val dependencyPath: List<Subject> = emptyList(), val message: String, val severity: Severity = Severity.ERROR, val metadata: RuleMetadata? = null, val isSuppressed: Boolean = false, val suppression: SuppressionMetadata? = null)

Represents an individual architectural rule violation.

Link copied to clipboard
@Serializable
data class ViolationReport(val ruleId: String, val violations: List<Violation>, val severity: Severity = Severity.ERROR)

Aggregated report containing rule violations for a given rule execution.