Merge pull request #54 from CakeLancelot/editorconfig

Add .editorconfig to enforce 4 space indent, final newline, and LF EoL
This commit is contained in:
CPunch 2020-08-28 15:50:30 -05:00 committed by GitHub
commit 2551f74af1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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