Skip to content

Commit

Permalink
Add .editorconfig file
Browse files Browse the repository at this point in the history
Propose basic settings for controlling EOL encoding and
space-only indentation of CMake and other scripts.
  • Loading branch information
mloskot authored and Patrick Niklaus committed Feb 20, 2018
1 parent 1cafafc commit 8788b0f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8788b0f

Please sign in to comment.