-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.sqlfluff
47 lines (39 loc) · 1.37 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
[sqlfluff]
dialect = bigquery
max_line_length = 200
output_line_length = 200
sql_file_exts = .sql,.bqsql
# Remove byte limitation
large_file_skip_byte_limit = 0
# Choose what to exclude from the rules
exclude_rules =
# Configuration to prevent changing the column order with sqlfluff fix
structure.column_order
,ambiguous.column_count
,structure.using
# Added because Salesforce becomes hard to read when converted to lower camel case
,capitalisation.identifiers
[sqlfluff:indentation]
indent_unit = space
tab_space_size = 2
[sqlfluff:rules:layout.long_lines]
# Comments lines can be long, to allow for URLs, etc.
# Ignore comment lines regarding line length
ignore_comment_lines = True
# Ignore comment clauses regarding line length
ignore_comment_clauses = True
[sqlfluff:rules:capitalisation.keywords]
# Case of reserved words
capitalisation_policy = upper
[sqlfluff:rules:capitalisation.functions]
# Case of function names
extended_capitalisation_policy = upper
[sqlfluff:rules:capitalisation.literals]
# Case of literal values (null, true, false)
capitalisation_policy = upper
[sqlfluff:rules:capitalisation.types]
# Case of data types
extended_capitalisation_policy = upper
[sqlfluff:rules:capitalisation.identifiers]
# Avoid the issue where calls in the form of normalize(str, 'NFKC') are turned into normalize(str, 'nfkc')
ignore_words = NFD,NFC,NFKD,NFKC