-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.sqlfluff
33 lines (27 loc) · 955 Bytes
/
.sqlfluff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# https://docs.sqlfluff.com/en/stable/reference/rules.html
[sqlfluff]
dialect = clickhouse
# TODO: Change to the dbt teplater with a plugin
# https://docs.sqlfluff.com/en/latest/configuration/templating/dbt.html
templater = jinja
max_line_length = 120
exclude_rules = RF06, CP03, LT01
[sqlfluff:rules:aliasing.length]
min_alias_length = 3
[sqlfluff:indentation]
indented_joins = True
indented_using_on = False
[sqlfluff:rules:capitalisation.keywords]
capitalisation_policy = upper
[sqlfluff:rules:capitalisation.identifiers]
extended_capitalisation_policy = lower
[sqlfluff:rules:capitalisation.literals]
capitalisation_policy = lower
[sqlfluff:rules:capitalisation.types]
extended_capitalisation_policy = pascal
# this flags `COMMENT` clause for `CREATE` statements
[sqlfluff:rules:references.special_chars]
quoted_identifiers_policy = none
[sqlfluff:rules:convention.not_equal]
# prefer the c_style (i.e. `!=`)
preferred_not_equal_style = c_style