From 57d04422911883bd97df755d9e23c2504068edd3 Mon Sep 17 00:00:00 2001 From: Bernd Worsch Date: Fri, 12 Sep 2025 02:19:01 +0200 Subject: [PATCH] chore: optimize .editorconfig for consistent coding style --- .editorconfig | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 67b4835..9584700 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,7 +1,33 @@ +# .editorconfig for Railiance +# See: https://editorconfig.org + root = true + [*] +charset = utf-8 end_of_line = lf insert_final_newline = true -charset = utf-8 +trim_trailing_whitespace = true + +# Default indentation indent_style = space indent_size = 2 + +# Markdown: don't strip trailing whitespace (needed for line breaks) +[*.md] +trim_trailing_whitespace = false + +# YAML & Ansible playbooks: 2 spaces +[*.{yml,yaml}] +indent_style = space +indent_size = 2 + +# Shell scripts: 2 spaces, LF enforced above +[*.sh] +indent_style = space +indent_size = 2 + +# Python: 4 spaces +[*.py] +indent_style = space +indent_size = 4