From 76dac6f428dc17d942419e4fb81ec35a430964f7 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Sat, 8 Oct 2022 12:40:19 +0200 Subject: [PATCH] armbian-next: a-n's editorconfig with no whitespace trimming --- .editorconfig | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.editorconfig b/.editorconfig index 50a0aab5b..717824a59 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,30 +8,34 @@ charset = utf-8 end_of_line = lf indent_style = tab indent_size = 8 -trim_trailing_whitespace = true +trim_trailing_whitespace = false insert_final_newline = true [*.md] indent_style = space indent_size = 4 -trim_trailing_whitespace = false insert_final_newline = false [*.json] indent_style = space indent_size = 4 +trim_trailing_whitespace = false +insert_final_newline = true -[*.yml] -indent_style = space -indent_size = 2 +# Custom Armbian formatting for bash sources and configuration +[*.{sh,inc,conf,eos,wip,tvb,csc}] +indent_style = tab +indent_size = 4 +shell_variant = bash +binary_next_line = false +switch_case_indent = true +space_redirects = true +keep_padding = false +function_next_line = false # C coding style based on Linux kernel. # https://www.kernel.org/doc/html/v5.0/process/coding-style.html -[*.{sh,inc,conf}] -indent_style = tab -indent_size = 4 - [*.c] indent_style = tab indent_size = 8 @@ -39,3 +43,8 @@ indent_size = 8 [*.h] indent_style = tab indent_size = 8 + +[*.yaml] +indent_style = space +indent_size = 2 +insert_final_newline = false