RegexRule
abstract class RegexRule(ruleName: String, pattern: String, message: String, val defaultSeverity: Severity = Severity.Warning, val defaultEnable: Boolean = true, val targetCapability: DialectCapability? = null, hashLineComments: Boolean = false) : Rule
Base implementation for rules that report regular expression matches in masked SQL source text.
Comments and quoted text are replaced with spaces before matching, so diagnostic ranges still point at the original source offsets.
Constructors
Properties
Link copied to clipboard
Whether this rule can run by default before user configuration and auto applicability are resolved.
Link copied to clipboard
Default enablement derived from Rule.defaultEnable.
Link copied to clipboard
Default severity used when user configuration does not override it.
Link copied to clipboard
Dialect capability required when this rule is resolved with Auto.