From 38e287019d1bfdb69c49b0e8a47eaec71fc8f0d7 Mon Sep 17 00:00:00 2001 From: Matthis Thorade Date: Tue, 6 Mar 2018 15:51:58 +0100 Subject: [PATCH] editorconfig (#1609) * basic .editorconfig documentation is on http://editorconfig.org examples with cpp and py here on github: https://git.io/vFu7X * remove some extensions * rules for json, travis, makefile * Makefile with capital M [CI skip] --- .editorconfig | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..7419a98f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,39 @@ +# see editorconfig.org +root = true + +# default settings for all file types +[*] +insert_final_newline = true +trim_trailing_whitespace = true + +# settings per extension (alphabetically) +[{*.cmake,CMakeLists.txt}] +indent_size = 2 +indent_style = space + +[*.{cpp,h}] +charset = utf-8 +indent_size = 4 +indent_style = space + +[*.json] +charset = utf-8 +indent_size = 2 +indent_style = space + +[Makefile] +indent_size = 4 +indent_style = tab + +[*.md] +charset = utf-8 +trim_trailing_whitespace = false + +[*.py] +charset = utf-8 +indent_size = 4 +indent_style = space + +[.travis.yml] +indent_size = 2 +indent_style = space