From 0725e268b3d65e59d1838bffec865fa913ebd88f Mon Sep 17 00:00:00 2001 From: M Parker <219351+mparker17@users.noreply.github.com> Date: Thu, 30 Apr 2026 17:25:30 -0400 Subject: [PATCH 1/4] Add an editorconfig. --- .editorconfig | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..666fbbf --- /dev/null +++ b/.editorconfig @@ -0,0 +1,22 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[{compose,docker-compose}.{yml,yaml}] +indent_size = 4 + +# Script files +[*.sh] +indent_size = 2 From 44328bd6fd4e169c714db81f5b3cc12b957f9cfb Mon Sep 17 00:00:00 2001 From: M Parker <219351+mparker17@users.noreply.github.com> Date: Thu, 30 Apr 2026 17:32:53 -0400 Subject: [PATCH 2/4] UpdateChecker should check for .editorconfig. --- .github/scripts/update-checker.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/scripts/update-checker.sh b/.github/scripts/update-checker.sh index 9f9780a..709a506 100755 --- a/.github/scripts/update-checker.sh +++ b/.github/scripts/update-checker.sh @@ -347,6 +347,19 @@ check_file_formatting() { done < <(git ls-files -z 2>/dev/null | grep -zv '^tests/testdata/') } +# Check .editorconfig +check_editorconfig() { + local editorconfig=".editorconfig" + + if [[ -f "$editorconfig" ]]; then + if ! grep -q "charset = utf-8" "$editorconfig"; then + actions+=("$editorconfig should contain 'charset = utf-8', see upstream file $UPSTREAM/$editorconfig") + fi + else + actions+=("$editorconfig is missing, see upstream file $UPSTREAM/$editorconfig") + fi +} + # Main function main() { if [[ ! -f "install.yaml" ]]; then @@ -400,6 +413,9 @@ main() { # Check file formatting check_file_formatting + # Check .editorconfig + check_editorconfig + # Display info messages if any if [[ ${#info_messages[@]} -gt 0 ]]; then echo "INFO:" >&2 From 2a5976bd4c459b3939812f2d0bc425f3e6e524a1 Mon Sep 17 00:00:00 2001 From: M Parker <219351+mparker17@users.noreply.github.com> Date: Thu, 30 Apr 2026 17:33:08 -0400 Subject: [PATCH 3/4] .editorconfig should be added to export-ignore. --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 70215be..c13c93a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,3 +2,4 @@ tests/ export-ignore .github/ export-ignore .gitattributes export-ignore +.editorconfig export-ignore From a499818df4079de97da410e33ccdd0b00d5531dd Mon Sep 17 00:00:00 2001 From: Stanislav Zhuk Date: Fri, 1 May 2026 11:35:59 +0300 Subject: [PATCH 4/4] Update .editorconfig --- .editorconfig | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.editorconfig b/.editorconfig index 666fbbf..27fed85 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,12 +11,5 @@ trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false -[*.{yml,yaml}] -indent_size = 2 - -[{compose,docker-compose}.{yml,yaml}] -indent_size = 4 - -# Script files -[*.sh] +[*.{bats,sh,yml,yaml}] indent_size = 2