From ccff18360082900dc09a19675b8181d90b621129 Mon Sep 17 00:00:00 2001 From: RadWolfie Date: Wed, 16 May 2018 10:20:48 -0500 Subject: [PATCH] Editorconfig second revision * Apply only for src and resource directories. With this setup, it should work as intended only for Cxbx-Reloaded's source code without affecting third-party projects. --- .editorconfig | 4 ---- build/win32/Cxbx.vcxproj | 2 ++ build/win32/Cxbx.vcxproj.filters | 15 +++++++++++++++ resource/.editorconfig | 7 +++++++ src/.editorconfig | 7 +++++++ 5 files changed, 31 insertions(+), 4 deletions(-) delete mode 100644 .editorconfig create mode 100644 resource/.editorconfig create mode 100644 src/.editorconfig diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 2a611d770..000000000 --- a/.editorconfig +++ /dev/null @@ -1,4 +0,0 @@ -root = true - -[*] -indent_size = 4 diff --git a/build/win32/Cxbx.vcxproj b/build/win32/Cxbx.vcxproj index 4b4265e85..8ea96a79a 100644 --- a/build/win32/Cxbx.vcxproj +++ b/build/win32/Cxbx.vcxproj @@ -376,8 +376,10 @@ + + diff --git a/build/win32/Cxbx.vcxproj.filters b/build/win32/Cxbx.vcxproj.filters index 86fc7c02b..d1a85be21 100644 --- a/build/win32/Cxbx.vcxproj.filters +++ b/build/win32/Cxbx.vcxproj.filters @@ -627,6 +627,12 @@ Hardware\Video + + Code Format\src + + + Code Format\resource + @@ -656,6 +662,15 @@ {9efb9cfc-2731-4edb-8dd0-36950b0263df} + + {0e125cbe-fb2e-41ef-a381-6effd9fabd35} + + + {26a58e10-09ca-4605-86f8-552e5a9aa2e3} + + + {6bbc2463-25dc-4f07-bf9e-38d6216d036a} + diff --git a/resource/.editorconfig b/resource/.editorconfig new file mode 100644 index 000000000..5e333d675 --- /dev/null +++ b/resource/.editorconfig @@ -0,0 +1,7 @@ +root = true + +[*.rc] +indent_size = 4 +trim_trailing_whitespace = true +end_of_line = crlf +insert_final_newline = true diff --git a/src/.editorconfig b/src/.editorconfig new file mode 100644 index 000000000..f4a248305 --- /dev/null +++ b/src/.editorconfig @@ -0,0 +1,7 @@ +root = true + +[*] +indent_size = 4 +trim_trailing_whitespace = true +end_of_line = crlf +insert_final_newline = true