diff options
author | Oliver Schneider <oliver@assarbad.net> | 2019-11-17 01:04:05 +0300 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2019-11-17 01:04:05 +0300 |
commit | c4c75435b9aff78752fb25719b8841209a97d551 (patch) | |
tree | b301987170a12488520cf81155bb26c24887a807 | |
parent | b15edd4c0b3949f773e95129bd9fefdad1686c6a (diff) |
Adding .editorconfig files in the hope of avoiding future messing with line
endings or mixed tabs and spaces ...
-rw-r--r-- | .editorconfig | 16 | ||||
-rw-r--r-- | 3rdparty/.editorconfig | 1 | ||||
-rw-r--r-- | premake4.lua | 2 |
3 files changed, 18 insertions, 1 deletions
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" }, } |