ForeignKeysRestoredRule

Reports SQLite migration files that disable foreign keys without restoring them.

The rule checks migration text for PRAGMA foreign_keys = OFF without a matching restore to ON.

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 override fun isApplicable(context: RuleContext): Boolean
Link copied to clipboard
open override fun run(context: RuleContext, reporter: DiagnosticReporter)