SourceIndentationRule

Reports SQL lines whose indentation does not match their source structure.

The rule only checks multiline statements. Clause starts align with their source block nesting, while clause contents and expression continuations are indented one level deeper. Subquery bodies are indented inside their parenthesized source block.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val defaultEnable: Boolean = true
Link copied to clipboard
open override val defaultSeverity: Severity
Link copied to clipboard
open override val id: RuleId
Link copied to clipboard

Functions

Link copied to clipboard
open fun isApplicable(context: RuleContext): Boolean
Link copied to clipboard
open override fun run(context: RuleContext, reporter: DiagnosticReporter)