-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy path.sqlfluff
55 lines (45 loc) · 1.8 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[sqlfluff]
templater = jinja
dialect = duckdb
sql_file_exts = .sql.j2,.sql
ignore = templating
runaway_limit = 10
max_line_length = 140
# Comma separated list of rules to exclude, or None
# See https://docs.sqlfluff.com/en/stable/perma/rule_disabling.html
# AM04 (ambiguous.column_count) and ST06 (structure.column_order) are
# two of the more controversial rules included to illustrate usage.
exclude_rules = structure.column_order, structure.using
[sqlfluff:indentation]
indented_joins = false
indented_using_on = true
template_blocks_indent = false
tab_space_size = 2
[sqlfluff:layout:type:comma]
line_position = leading
[sqlfluff:templater]
unwrap_wrapped_queries = true
[sqlfluff:templater:jinja]
apply_dbt_builtins = true
# The default configuration for capitalisation rules is "consistent"
# which will auto-detect the setting from the rest of the file. This
# is less desirable in a new project and you may find this (slightly
# more strict) setting more useful.
# Typically we find users rely on syntax highlighting rather than
# capitalisation to distinguish between keywords and identifiers.
# Clearly, if your organisation has already settled on uppercase
# formatting for any of these syntax elements then set them to "upper".
# See https://stackoverflow.com/questions/608196/why-should-i-capitalize-my-sql-keywords-is-there-a-good-reason
[sqlfluff:rules:capitalisation.keywords]
capitalisation_policy = upper
[sqlfluff:rules:capitalisation.identifiers]
capitalisation_policy = consistent
ignore_words = Date
[sqlfluff:rules:capitalisation.functions]
extended_capitalisation_policy = consistent
ignore_words = dateDiff
[sqlfluff:rules:capitalisation.literals]
capitalisation_policy = consistent
[sqlfluff:rules:capitalisation.types]
extended_capitalisation_policy = consistent
ignore_words = DateTime,UInt64,FixedString