From 998cbbe0d17b67d5671fe43cba42211926289175 Mon Sep 17 00:00:00 2001 From: om-ghante Date: Sun, 26 Apr 2026 19:43:44 +0530 Subject: [PATCH] chore: add .editorconfig to enforce consistent formatting - Tab indentation for Java files (matches Spotless/formatter.xml) - Space indentation for XML and YAML files - UTF-8 charset and LF line endings - Final newline insertion (matches Spotless endWithNewline) - Preserve trailing whitespace in Markdown files Fixes #43 --- .editorconfig | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..7b3ca3e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,26 @@ +# EditorConfig: https://editorconfig.org +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.java] +indent_style = tab +tab_width = 4 + +[*.xml] +indent_style = space +indent_size = 4 + +[*.{yml,yaml}] +indent_style = space +indent_size = 4 + +[*.md] +trim_trailing_whitespace = false + +[*.properties] +charset = utf-8