-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.sqlfluff
More file actions
30 lines (24 loc) · 902 Bytes
/
.sqlfluff
File metadata and controls
30 lines (24 loc) · 902 Bytes
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
[sqlfluff]
# dialect = postgres sets the default to PostgreSQL syntax
dialect = postgres
templater = jinja
max_line_length = 120
large_file_skip_byte_limit = 0
processes = -1
# Only format layout/style — disable semantic rules that require DB context
exclude_rules = AM04, AL01, AL05, RF01, RF02, RF03, RF04, RF05, CP02, ST06
[sqlfluff:templater:jinja]
# Provides ref(), source(), config(), var() etc. automatically
apply_dbt_builtins = True
[sqlfluff:rules:layout.indent]
indent_unit = space
tab_space_size = 4
[sqlfluff:rules:capitalisation.keywords]
# SQL keywords must be uppercase e.g. SELECT, FROM, WHERE
capitalisation_policy = upper
[sqlfluff:rules:capitalisation.identifiers]
# Table and column names must be lowercase
capitalisation_policy = lower
[sqlfluff:rules:capitalisation.literals]
# Boolean/null literals must be uppercase e.g. TRUE, FALSE, NULL
capitalisation_policy = upper