-
Notifications
You must be signed in to change notification settings - Fork 1
/
.sqlfluff
27 lines (21 loc) · 1.21 KB
/
.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
# https://docs.sqlfluff.com/en/stable/rules.html
[sqlfluff]
dialect = postgres
ignore = parsing
# Ignoring capitalisation.identifiers because it seems to want to uppercase column names if there are capitalized enums defined before the table (like in V11__Add_Plan_General_Characteristics)
# Ignoring layout.long_lines because we break line-length requirements in a few places with comments
# Ignoring aliasing.forbid so we can use table aliases
# Ignoring structure.column_order becase we like to order SQL statements similarly across files
exclude_rules = capitalisation.identifiers, layout.long_lines, aliasing.forbid, structure.column_order, layout.spacing
[sqlfluff:rules:capitalisation.keywords]
# https://docs.sqlfluff.com/en/stable/rules.html#rule-capitalisation.keywords
capitalisation_policy = upper
[sqlfluff:rules:aliasing.forbid]
# https://docs.sqlfluff.com/en/stable/rules.html#rule-aliasing.forbid
force_enable = False
[sqlfluff:rules:capitalisation.literals]
# https://docs.sqlfluff.com/en/stable/rules.html#rule-capitalisation.literals
capitalisation_policy = upper
[sqlfluff:rules:capitalisation.types]
# https://docs.sqlfluff.com/en/stable/rules.html#rule-capitalisation.types
extended_capitalisation_policy = upper