forked from networkupstools/nut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
82 lines (61 loc) · 1.67 KB
/
.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# EditorConfig is awesome: https://EditorConfig.org
# https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
# top-most EditorConfig file
root = true
[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 80
indent_style = tab
tab_width = 4
#indent_style = space
#indent_size = 4
# Platform-dependent, except for certain interpreters
# whose sources must use LF, see .gitattributes
###end_of_line = lf
#ij_formatter_enabled = false
[.editorconfig]
trim_trailing_whitespace = false
[*.{bat,cmd,ps1}]
end_of_line = crlf
[*.{am,hwdb,service,target,path}{,.in}]
end_of_line = lf
line_comment = #
[*.sh{,.in}]
end_of_line = lf
line_comment = #
# Borrowed from https://github.com/armbian/build/blob/master/.editorconfig
shell_variant = bash
binary_next_line = false
switch_case_indent = true
space_redirects = true
keep_padding = false
function_next_line = false
[*.{m4,ac}{,.in}]
end_of_line = lf
line_comment = dnl
[*.{conf,sample}{,.in}]
max_line_length = 76
line_comment = #
[*.txt{,.in},*.adoc{,.in},AUTHORS,COPYING,INSTALL.nut,MAINTAINERS,NEWS,README,TODO,UPGRADING]
max_line_length = 76
indent_style = space
indent_size = 4
# Assumes asciidoc comments:
block_comment_start = ////////
block_comment_end = ////////
[*.{yaml,yml,json}{,.in}]
indent_style = space
indent_size = 4
################################################################
# Primary concern: C/C++ style
# See also docs/developers.txt => Code Style chapter
[*.{c,h,cpp}{,.in}]
spaces_around_operators = true
spaces_around_brackets = none
# Plus one TAB:
continuation_indent_size = 1
indent_brace_style = K&R
block_comment_start = /*
block_comment_end = */