-
Notifications
You must be signed in to change notification settings - Fork 0
/
.sqlfluff
52 lines (42 loc) · 1.4 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
[sqlfluff]
dialect = postgres
templater = dbt
exclude_rules = L001, L008, L031, L029, L016
[sqlfluff:templater:dbt]
project_dir = dbt/
profiles_dir = dbt/
profile = dbt_arado
target = local
[sqlfluff:indentation]
indented_ctes = true
tab_space_size = 2
[sqlfluff:rules:capitalisation.keywords]
capitalisation_policy = upper
[sqlfluff:rules:layout.long_lines]
ignore_comment_clauses = true
[sqlfluff:rules:references.keywords]
ignore_words = warehouses, key
[sqlfluff:rules:capitalisation.functions]
# Function names
extended_capitalisation_policy = upper
[sqlfluff:rules:capitalisation.literals]
# Null & Boolean Literals
capitalisation_policy = upper
[sqlfluff:rules:capitalisation.types]
# Data Types
extended_capitalisation_policy = upper
[sqlfluff:rules:references.special_chars]
# Data Types
additional_allowed_characters = -, %, $, &, (, ), /, +, '#'
[sqlfluff:layout:type:alias_expression]
# We want non-default spacing _before_ the alias expressions.
spacing_before = align
# We want to align them within the next outer select clause.
# This means for example that alias expressions within the FROM
# or JOIN clause would _not_ be aligned with them.
align_within = select_clause
# The point at which to stop searching outward for siblings, which
# in this example would likely be the boundary of a CTE. Stopping
# when we hit brackets is usually a good rule of thumb for this
# configuration.
align_scope = bracketed