Add .editorconfig to enforce 4 space indent

Should be supported by most IDEs and text editors
This commit is contained in:
CakeLancelot 2020-08-28 15:34:49 -05:00
parent 5cf7225f52
commit 1af240fa34

23
.editorconfig Normal file
View File

@ -0,0 +1,23 @@
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
# 4 space indentation
[*.cpp,*.hpp]
indent_style = space
indent_size = 4
# Tabs in makefile
[Makefile]
indent_style = tab
# Don't enforce anything in contrib
[/src/contrib/**]
end_of_line = unset
insert_final_newline = unset
indent_style = unset
indent_style = unset