From c4c75435b9aff78752fb25719b8841209a97d551 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Sat, 16 Nov 2019 23:04:05 +0100 Subject: Adding .editorconfig files in the hope of avoiding future messing with line endings or mixed tabs and spaces ... --- .editorconfig | 16 ++++++++++++++++ 3rdparty/.editorconfig | 1 + premake4.lua | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .editorconfig create mode 100644 3rdparty/.editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..96dc111 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 4 + +[*.{rc,rc2,cmd,bat,vcxproj,vcxproj.filters,vcproj,sln}] +end_of_line = crlf + +[*.{c,cpp,h}] +trim_trailing_whitespace = true + +[{Makefile,GNUmakefile}] +indent_style = tab diff --git a/3rdparty/.editorconfig b/3rdparty/.editorconfig new file mode 100644 index 0000000..78b36ca --- /dev/null +++ b/3rdparty/.editorconfig @@ -0,0 +1 @@ +root = true diff --git a/premake4.lua b/premake4.lua index 9e22027..10ff110 100644 --- a/premake4.lua +++ b/premake4.lua @@ -449,7 +449,7 @@ solution (iif(release, slnname, "windirstat")) ["Source Files/Controls/*"] = { "windirstat/Controls/*.cpp" }, ["Source Files/Dialogs/*"] = { "windirstat/Dialogs/*.cpp" }, ["Source Files/*"] = { "windirstat/*.cpp" }, - ["Special Files/*"] = { "common/BUILD", "common/*.cmd", "premake4.lua", "*.cmd" }, + ["Special Files/*"] = { "common/BUILD", "common/*.cmd", "premake4.lua", "*.cmd", ".editorconfig", ".hgignore", ".hgeol" }, ["*"] = { "*.txt", "*.md" }, } -- cgit v1.2.3