This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
forked from sqlfluff/sqlfluff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
53 lines (47 loc) · 1.61 KB
/
.editorconfig
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
# editorconfig.org
root = true
[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.{html,md,js,css}]
indent_size = 2
[*.py]
indent_size = 4
# Don't correct indentation for sql and yaml files as sometimes want them wrong for tests
[*.{yml,yaml,sql}]
indent_style = unset
# Some specific tests with trailing newlines
# If adding any exceptions here, make sure to add them to .pre-commit-config.yaml as well
[test/fixtures/templater/jinja_l_metas/0{01,03,04,05,07,08,11}.sql]
indent_style = unset
insert_final_newline = unset
[test/fixtures/linter/sqlfluffignore/*/*.sql]
indent_style = unset
trim_trailing_whitespace = unset
insert_final_newline = unset
[test/fixtures/config/inheritance_b/{,nested/}example.sql]
indent_style = unset
trim_trailing_whitespace = unset
insert_final_newline = unset
[trailing_newlines.sql]
indent_style = unset
trim_trailing_whitespace = unset
insert_final_newline = unset
[plugins/sqlfluff-templater-dbt/test/fixtures/dbt/dbt_project/models/my_new_project/multiple_trailing_newline.sql]
indent_style = unset
insert_final_newline = unset
[plugins/sqlfluff-templater-dbt/test/fixtures/dbt/templated_output/macro_in_macro.sql]
indent_style = unset
trim_trailing_whitespace = unset
insert_final_newline = unset
[plugins/sqlfluff-templater-dbt/test/fixtures/dbt/templated_output/{,dbt_utils_0.8.0/}last_day.sql]
indent_style = unset
trim_trailing_whitespace = unset
insert_final_newline = unset
[test/fixtures/linter/indentation_errors.sql,test/fixtures/templater/jinja_d_roundtrip/test.sql]
trim_trailing_whitespace = false
[*.rst]
indent_size = 3