Skip to content

Instantly share code, notes, and snippets.

@ethanfuerst
Created September 6, 2023 18:54
Show Gist options
  • Save ethanfuerst/f31b042d26b3a2766822145c9046cbcf to your computer and use it in GitHub Desktop.
Save ethanfuerst/f31b042d26b3a2766822145c9046cbcf to your computer and use it in GitHub Desktop.
My preferred .sqlfluff rules
[sqlfluff]
# if using dbt
templater = jinja
dialect = snowflake
[sqlfluff:rules]
max_line_length = 80
indent_unit = tab
tab_space_size = 4
capitalization_policy = lower
extended_capitalisation_policy = lower
preferred_type_casting_style = shorthand
exclude_rules = L031,L052
# ¯\_(ツ)_/¯
[sqlfluff:layout:type:comma]
line_position = leading
[sqlfluff:rules:L016]
ignore_comment_clauses = False
[sqlfluff:rules:L036]
wildcard_policy = multiple
[sqlfluff:rules:L042]
forbid_subquery_in = both
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment