Skip to main content

Module lt_002

Module lt_002 

Source
Expand description

LINT_LT_002: Layout indent.

SQLFluff LT02 parity: flag structural indentation violations (clause contents not indented under their parent keyword), odd indentation widths, mixed tab/space indentation, and wrong indent style.

§Module layout

This module is large (~5 000 lines) because the PostgreSQL structural indentation engine (postgres_keyword_break_and_indent_edits and postgres_lt02_extra_issue_spans) shares ~40 helper functions with the generic indentation detection. A future submodule split into lt_002/{mod, postgres}.rs is tracked but deferred until the shared helpers can be cleanly separated.

See docs/plans/2026-02-18-lt02-indentation-engine-parity.md for the parity design doc.

Structs§

LayoutIndent