From 1af240fa3433007b4c85b68d51f81f589660683e Mon Sep 17 00:00:00 2001 From: CakeLancelot Date: Fri, 28 Aug 2020 15:34:49 -0500 Subject: [PATCH] Add .editorconfig to enforce 4 space indent Should be supported by most IDEs and text editors --- .editorconfig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f51174b --- /dev/null +++ b/.editorconfig @@ -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 \ No newline at end of file