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§
- FixCandidate
Stats - Aggregate statistics about fix candidates that were skipped or blocked across all passes of a multi-pass lint-fix execution.
- FixCounts
- FixLint
State - FixOptions
- FixOutcome
- FixPass
Result - FixSkipped
Counts - Lint
FixExecution - Result of a multi-pass lint-fix execution.
- Lint
FixRuntime Options - 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.