From 85ebe3fd7e0e034003198663e740d57dd173ffa1 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 10 Jun 2025 18:48:19 -0700 Subject: [PATCH] .editorconfig: add indentation rule for shell files EditorConfig is a way to specify some basic code formatting rules independently of an $EDITOR being used. Add rules for bats/bash/sh files: - use 4 spaces for indentation (which appears to be a de-facto standard in this repository, see e.g. commit 86e55d0ec1acd79f7); - ignore everything in vendor directories. Signed-off-by: Kir Kolyshkin (cherry picked from commit 5c5389dddd4cb09292443cd3ae71457e0b40f502) Signed-off-by: Paul Holzinger --- .editorconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..5e4fc7919c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# See https://EditorConfig.org + +# This is a top-most EditorConfig file. +root = true + +# Ignore any "vendor" directories. +[**/vendor/**] +ignore = true + +# Bash, bats, and sh files use 4 spaces for indentation. +[*.{bash,bats,sh}] +indent_style = space +indent_size = 4