Created
September 6, 2023 18:54
-
-
Save ethanfuerst/f31b042d26b3a2766822145c9046cbcf to your computer and use it in GitHub Desktop.
My preferred .sqlfluff rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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