RuleContext

interface RuleContext

Stable analysis view exposed to custom rules.

This type intentionally does not expose SQLDelight compiler internals. Core analysis translates SQLDelight-version-specific structures into sqldelight-check-owned models before rules run.

Properties

Link copied to clipboard

Database containing the file being analyzed.

Link copied to clipboard
abstract val facts: SqlFacts

Stable SQL structure facts for the file being analyzed.

Link copied to clipboard
abstract val file: SourceFile

File being analyzed.

Link copied to clipboard
abstract val options: RuleOptions

Resolved options for the rule currently being executed.