Skip to content

Commit e6ee245

Browse files
authored
chore: Add .editorconfig to set default whitespacing rules (#1415)
1 parent 02fdf4f commit e6ee245

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root=true
2+
3+
[*]
4+
insert_final_newline = true
5+
trim_trailing_whitespace = true
6+
7+
[{*.h,*.cpp,*.inl}]
8+
indent_style = unset
9+
indent_size = 2
10+
11+
[{CMakeLists.txt,*.cmake,*.py}]
12+
indent_style = spaces
13+
indent_size = 4

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Ignore everything starting with dot, except git files.
1+
# Ignore everything starting with dot, except specific files.
22
.*
3+
!.editorconfig
34
!.gitignore
45
!.gitattributes
56
!.github

0 commit comments

Comments
 (0)