forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
50 lines (41 loc) · 957 Bytes
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = tab
indent_size = 8
trim_trailing_whitespace = false
insert_final_newline = true
[*.md]
indent_style = space
indent_size = 4
insert_final_newline = false
[*.json]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false
insert_final_newline = true
# 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
[*.c]
indent_style = tab
indent_size = 8
[*.h]
indent_style = tab
indent_size = 8
[*.{yaml,yml}]
indent_style = space
indent_size = 2
insert_final_newline = false