Skip to main content

apply_lint_fixes

Function apply_lint_fixes 

Source
pub fn apply_lint_fixes(
    sql: &str,
    dialect: Dialect,
    disabled_rules: &[String],
) -> Result<FixOutcome, ParseError>
Expand description

Apply deterministic lint fixes to a SQL document.

Notes:

  • Fixes are planned as localized patches and applied only when non-overlapping.
  • Parse errors are returned so callers can decide whether to continue linting.