mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 08:39:17 +00:00
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:
@@ -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
@@ -1,7 +1,9 @@
|
|||||||
|
.*
|
||||||
|
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!.rubocop.yml
|
!.rubocop.yml
|
||||||
|
!.editorconfig
|
||||||
|
|
||||||
.*
|
|
||||||
*~
|
*~
|
||||||
*.class
|
*.class
|
||||||
*.iml
|
*.iml
|
||||||
@@ -10,3 +12,4 @@
|
|||||||
/data/savedGames
|
/data/savedGames
|
||||||
/lib/
|
/lib/
|
||||||
*/target/
|
*/target/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user