mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
armbian-next: a-n's editorconfig with no whitespace trimming
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user