git repos / blockattack-game

commit 168ce738

sago007 · 2016-04-02 10:19
168ce738ec5dbac8a103b80b7a3133bdf1730407 patch · browse files
parent c35c2b1015fab3f9725d1062fd73c6e3580f00c7

Added .editorconfig file. See: http://editorconfig.org/

Changed files

M .gitignore before
A source/code/.editorconfig
A source/code/Libs/.editorconfig
diff --git a/.gitignore b/.gitignore index e136ef9..ed30828 100644 --- a/.gitignore +++ b/.gitignore
@@ -9,6 +9,7 @@ nbproject
.*
-.travis.yml
-.gitignore
+!.editorconfig
*.patch
Game/blockattack*
cmake_install.cmake
diff --git a/source/code/.editorconfig b/source/code/.editorconfig new file mode 100644 index 0000000..efb1ba1 --- /dev/null +++ b/source/code/.editorconfig
@@ -0,0 +1,12 @@
+# Unix-style newlines with a newline ending every file
+[*]
+end_of_line = lf
+insert_final_newline = true
+charset = utf-8
+
+#Block Attack uses tabs for all identation
+[*.{cpp,h,hpp}]
+indent_style = tab
+insert_final_newline = true
+#Trim trailing whitespace... because it is already done and let us keep it consistently
+trim_trailing_whitespace = true
\ No newline at end of file
diff --git a/source/code/Libs/.editorconfig b/source/code/Libs/.editorconfig new file mode 100644 index 0000000..8c0ff4b --- /dev/null +++ b/source/code/Libs/.editorconfig
@@ -0,0 +1,2 @@
+#Because this folder contains external libraries we ignore the global code standard completly.
+root = true
\ No newline at end of file