Skip to content
Discussion options

You must be logged in to vote

You can configure sqlfluff to exclude/ignore the violated rules, which I think are all layout.type:

[sqlfluff]
exclude_rules = layout.indent, layout.cte_bracket, layout.select_targets, layout.spacing, layout.type
# set max_line_length to whatever you set in sqlfmt
max_line_length = 88

[sqlfluff:rules]
capitalisation_policy = lower
extended_capitalisation_policy = lower

[sqlfluff:rules:convention.terminator]
multiline_newline = True

Or you can add a single (empty) comment to force a line break in sqlfmt:

select *  --
from source 
where col is not null

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ngmiduc
Comment options

Answer selected by tconbeer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #681 on March 17, 2025 16:14.