-
Notifications
You must be signed in to change notification settings - Fork 0
/
.sqlfluff
46 lines (35 loc) · 1.12 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
[sqlfluff]
templater = dbt
sql_file_exts = .sql,.sql.j2,.dml,.ddl
max_line_length = 120
fix_even_unparsable = False
ignore_templated_areas = True
dialect = postgres
exclude_rules = layout.cte_bracket, layout.select_targets, layout.long_lines,
structure.using, layout.cte_newline, structure.column_order, structure.else_null
[sqlfluff:indentation]
indented_joins = true
indented_using_on = true
indent_unit = space
tab_space_size = 2
template_blocks_indent = true
[sqlfluff:templater]
unwrap_wrapped_queries = true
[sqlfluff:templater:jinja]
apply_dbt_builtins = true
[sqlfluff:rules:capitalisation.keywords]
capitalisation_policy = lower
[sqlfluff:rules:capitalisation.identifiers]
capitalisation_policy = lower
[sqlfluff:rules:capitalisation.functions]
extended_capitalisation_policy = lower
[sqlfluff:rules:capitalisation.literals]
capitalisation_policy = lower
[sqlfluff:rules:capitalisation.types]
extended_capitalisation_policy = lower
[sqlfluff:rules:convention.terminator]
multiline_newline = true
[sqlfluff:rules:references.keywords]
ignore_words = hour, day, month, year
[sqlfluff:templater:dbt]
project_dir = ./dbt_jardiner