RuleDiagnostic

class RuleDiagnostic(val severity: Severity, val message: String, val file: SourceFile?, val range: SourceRange?, val database: DatabaseContext?, val fixes: List<Fix> = emptyList())

Diagnostic emitted by a rule before the engine attaches the containing rule set.

Constructors

Link copied to clipboard
constructor(severity: Severity, message: String, file: SourceFile?, range: SourceRange?, database: DatabaseContext?, fixes: List<Fix> = emptyList())

Properties

Link copied to clipboard

Database context associated with the diagnostic when known.

Link copied to clipboard

File where the diagnostic occurred.

Link copied to clipboard
val fixes: List<Fix>

Optional fixes for the diagnostic.

Link copied to clipboard

User-facing message.

Link copied to clipboard

Source range where the diagnostic occurred.

Link copied to clipboard

Severity requested by the rule before user configuration overrides it.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String