From 22af7470a464351d7c42bda0d920c10e46d49e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Lo=CC=81pez=20Man=CC=83as?= Date: Fri, 14 Aug 2026 21:24:02 +0700 Subject: [PATCH] build: add .editorconfig for consistent code formatting Adds a root .editorconfig with basic formatting conventions (UTF-8, LF line endings, trailing whitespace trimming, final newline, and indentation rules for Kotlin, Java, Gradle, XML, YAML/JSON, and Markdown) so contributors get consistent defaults across editors and IDEs. Fixes #964 --- .editorconfig | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..ad4bc544 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,35 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 4 + +[*.{kt,kts}] +indent_size = 4 +max_line_length = 100 +ij_kotlin_allow_trailing_comma = true +ij_kotlin_allow_trailing_comma_on_call_site = true +ij_kotlin_packages_to_use_import_on_demand = unset + +[*.java] +indent_size = 4 +max_line_length = 100 + +[*.{xml,gradle}] +indent_size = 4 + +[*.{yml,yaml,json}] +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false + +[*.{bat,cmd}] +end_of_line = crlf + +[Makefile] +indent_style = tab