Violation
@Serializable
Represents an individual architectural rule violation.
Constructors
Link copied to clipboard
constructor(ruleId: String, subject: Subject, target: Subject? = null, sourceLocation: SourceLocation? = subject.location, dependencyPath: List<Subject> = emptyList(), message: String, severity: Severity = Severity.ERROR, metadata: RuleMetadata? = null, isSuppressed: Boolean = false, suppression: SuppressionMetadata? = null)
Properties
Link copied to clipboard
Sequence of subjects representing the dependency path leading to the violation.
Link copied to clipboard
Whether this violation has been suppressed (e.g. via @Suppress, programmatic config, or baseline).
Link copied to clipboard
Link copied to clipboard
Severity level of the violation (defaults to Severity.ERROR).
Link copied to clipboard
Optional source location for the violation. Defaults to subject location.
Link copied to clipboard
Optional structured metadata explaining why and how this violation was suppressed.