ReportViolation

@Serializable
data class ReportViolation(val ruleId: String, val severity: Severity, val message: String, val subject: Subject, val target: Subject? = null, val sourceLocation: SourceLocation? = null, val dependencyPath: List<Subject> = emptyList(), val isSuppressed: Boolean = false, val suppressionReason: String? = null, val suppressionKind: String? = null)

Detailed representation of an individual architectural violation for JSON reports.

Constructors

Link copied to clipboard
constructor(ruleId: String, severity: Severity, message: String, subject: Subject, target: Subject? = null, sourceLocation: SourceLocation? = null, dependencyPath: List<Subject> = emptyList(), isSuppressed: Boolean = false, suppressionReason: String? = null, suppressionKind: String? = null)

Properties

Link copied to clipboard

Sequence of subjects representing the dependency or invocation path.

Link copied to clipboard

True if this violation was suppressed (e.g. via @Suppress, programmatic config, or baseline).

Link copied to clipboard

Descriptive failure message.

Link copied to clipboard

Identifier of the rule violated.

Link copied to clipboard

Severity level of the violation.

Link copied to clipboard

Optional source file location of the subject.

Link copied to clipboard

The subject element committing the violation.

Link copied to clipboard

Optional category of suppression mechanism (inSource, programmatic, baseline).

Link copied to clipboard

Optional rationale or reason why this violation was suppressed.

Link copied to clipboard

Optional target subject involved in the violation.