From 8788b0fae8e95c291d796b2ab3121dc8542750e4 Mon Sep 17 00:00:00 2001 From: Mateusz Loskot Date: Wed, 14 Feb 2018 00:17:19 +0100 Subject: [PATCH] Add .editorconfig file Propose basic settings for controlling EOL encoding and space-only indentation of CMake and other scripts. --- .editorconfig | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..a8458e8f9 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,30 @@ +# EditorConfig is awesome: http://EditorConfig.org +# +# NOTE: Keep settings in sync with the master .clang-format file +# +# top-most EditorConfig file +root = true + +# CMake configuration files +[{CMakeLists.txt,CMakeSettings.json,*.cmake}] +indent_size = 2 +indent_style = space +trim_trailing_whitespace = true + +# CI configuration files +[{.travis.yml,appveyor.yml}] +indent_size = 2 +indent_style = space +trim_trailing_whitespace = true + +# Unix shell scripts +[*.sh] +end_of_line = lf +indent_style = space +trim_trailing_whitespace = true + +# Windows shell scripts +[*.bat] +end_of_line = crlf +indent_style = space +trim_trailing_whitespace = true