From 04a12f49b1386e4331080d4171468c427c1503d9 Mon Sep 17 00:00:00 2001 From: Jens Goldhammer Date: Sun, 24 Apr 2016 22:08:28 +0200 Subject: [PATCH] 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 --- .editorconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..98fec8b17d --- /dev/null +++ b/.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