Skip to main content

Module fix

Module fix 

Source
Expand description

SQL lint auto-fix helpers.

Fixing is best-effort and deterministic. We combine:

  • AST rewrites for structurally safe transforms.
  • Text rewrites for parity-style formatting/convention rules.
  • Lint before/after comparison to report per-rule removed violations.

Structs§

FixCandidateStats
Aggregate statistics about fix candidates that were skipped or blocked across all passes of a multi-pass lint-fix execution.
FixCounts
FixLintState
FixOptions
FixOutcome
FixPassResult
FixSkippedCounts
LintFixExecution
Result of a multi-pass lint-fix execution.
LintFixRuntimeOptions
Runtime configuration for the multi-pass lint-fix execution.

Functions§

apply_lint_fixes
Apply deterministic lint fixes to a SQL document.
apply_lint_fixes_with_lint_config
apply_lint_fixes_with_options
apply_lint_fixes_with_options_and_lint_state
apply_lint_fixes_with_runtime_options
Apply lint fixes using a bounded multi-pass loop with cascading fallback.