Add .editorconfig file to override IDE defaults

Add rules for enforcing tabs in Java, and spaces in Ruby.

Add a rule to make sure trailing whitespace is trimmed
and that no new final newline is inserted.
This commit is contained in:
Gary Tierney
2015-09-19 15:18:14 +01:00
parent 9343246d60
commit e9c33534a6
2 changed files with 17 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
root = true
[*]
trim_trailing_whitespace = true
insert_final_newline = false
[*.java]
indent_style=tab
tab_width=4
[*.rb]
indent_style=space
indent_size=2
+4 -1
View File
@@ -1,7 +1,9 @@
.*
!.gitignore
!.rubocop.yml
!.editorconfig
.*
*~
*.class
*.iml
@@ -10,3 +12,4 @@
/data/savedGames
/lib/
*/target/