Skip to content

Commit

Permalink
Add EditorConfig settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed May 30, 2019
1 parent 098a1ab commit 44125d1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# see http://editorconfig.org/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.java]
indent_style = space
indent_size = 2

[*.json]
indent_style = space
indent_size = 2
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"vscjava.vscode-java-pack",
"shengchen.vscode-checkstyle",
"GabrielBB.vscode-lombok",
"naco-siren.gradle-language"
"naco-siren.gradle-language",
"EditorConfig.editorconfig"
]
}
11 changes: 0 additions & 11 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,10 @@
"checkstyle.version": "8.8",
"checkstyle.configurationFile": "./config/checkstyle/checkstyle.xml",
"editor.renderWhitespace": "all",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"[java]": {
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"editor.rulers": [
100
],
"editor.tabSize": 2,
},
"[json]": {
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"editor.tabSize": 2,
},
"java.configuration.updateBuildConfiguration": "automatic"
}

0 comments on commit 44125d1

Please sign in to comment.