2
0
Эх сурвалжийг харах

Provide editor config for spring-security

This commit provides following editor config:
- Tabs, not spaces
- Unix (LF), not dos (CRLF) line endings
- Eliminate all trailing whitespace
- Latin-1 (ISO-8859-1) encoding for Java sources; use native2ascii to convert if necessary

Following convention cannot be set by editorconfig (only vim and emacs support maxline length of editorconfig):
- Aim to wrap code at 120 characters, but favor readability over wrapping

Fixes gh-3845
Jens Goldhammer 9 жил өмнө
parent
commit
04a12f49b1
1 өөрчлөгдсөн 17 нэмэгдсэн , 0 устгасан
  1. 17 0
      .editorconfig

+ 17 - 0
.editorconfig

@@ -0,0 +1,17 @@
+# EditorConfig for Spring Security
+# see https://github.com/spring-projects/spring-security/blob/master/CONTRIBUTING.md#mind-the-whitespace
+
+# top-most EditorConfig file
+root = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+end_of_line = lf
+insert_final_newline = true
+charset = latin1
+
+# 4 tabs indentation
+indent_style = tab
+tab_width = 4
+
+trim_trailing_whitespace = true