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]
This commit is contained in:
Matthis Thorade
2018-03-06 15:51:58 +01:00
committed by Ian Bell
parent 945f82e90e
commit 38e287019d

39
.editorconfig Normal file
View File

@@ -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