-
Notifications
You must be signed in to change notification settings - Fork 1
/
.editorconfig
49 lines (40 loc) · 1.16 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
# editorconfig.org
root = true
# Note:
# It seems that Autoware prefers spaces.
# Martin: I think that indent_style = tab, indent_size = 4 would be a better option.
# Maybe we could use that for our code.
# Related resources:
# https://autowarefoundation.gitlab.io/autoware.auto/AutowareAuto/contributor-guidelines.html#contributors-guidelines-formatting
# https://docs.ros.org/en/rolling/Contributing/Code-Style-Language-Versions.html
# see also .clang-format file in the project root
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.{xml,urdf,sdf,world}]
# We should switch to tabs,
# but to avoid reformatting a lot of code now, we use 2 spaces for now.
indent_style = space
indent_size = 2
[*.{yaml,yml}]
indent_style = space
indent_size = 2
[*.py]
indent_style = space
indent_size = 4
[CMakeLists.txt]
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false
[package.json]
indent_style = space
indent_size = 2
# JetBrain's IDEs does NOT use empty final newline
# for its metadata files in .idea dir
[**/.idea/**/*]
insert_final_newline = false