Merge pull request #2796 from jimklimov/fix-docs-markup
[networkupstools.git] / .editorconfig
blobfb640f2fd60ef09fdc63736f2fb41d520b8f14ad
1 # EditorConfig is awesome: https://EditorConfig.org
2 # https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
4 # top-most EditorConfig file
5 root = true
7 [*]
8 charset = utf-8
9 insert_final_newline = true
10 trim_trailing_whitespace = true
12 max_line_length = 80
14 indent_style = tab
15 tab_width = 4
16 #indent_style = space
17 #indent_size = 4
19 # Platform-dependent, except for certain interpreters
20 # whose sources must use LF, see .gitattributes
21 ###end_of_line = lf
23 #ij_formatter_enabled = false
25 [.editorconfig]
26 trim_trailing_whitespace = false
28 [*.{bat,cmd,ps1}]
29 end_of_line = crlf
31 [*.{am,hwdb,service,target,path}{,.in}]
32 end_of_line = lf
33 line_comment = #
35 [*.sh{,.in}]
36 end_of_line = lf
37 line_comment = #
39 # Borrowed from https://github.com/armbian/build/blob/master/.editorconfig
40 shell_variant = bash
41 binary_next_line = false
42 switch_case_indent = true
43 space_redirects = true
44 keep_padding = false
45 function_next_line = false
47 [*.{m4,ac}{,.in}]
48 end_of_line = lf
49 line_comment = dnl 
51 [*.{conf,sample}{,.in}]
52 max_line_length = 76
53 line_comment = #
55 [*.txt{,.in},*.adoc{,.in},AUTHORS,COPYING,INSTALL.nut,MAINTAINERS,NEWS,README,TODO,UPGRADING]
56 max_line_length = 76
57 indent_style = space
58 indent_size = 4
60 # Assumes asciidoc comments:
61 block_comment_start = ////////
62 block_comment_end = ////////
64 [*.{yaml,yml,json}{,.in}]
65 indent_style = space
66 indent_size = 4
68 ################################################################
69 # Primary concern: C/C++ style
70 # See also docs/developers.txt => Code Style chapter
72 [*.{c,h,cpp}{,.in}]
73 spaces_around_operators = true
74 spaces_around_brackets = none
76 # Plus one TAB:
77 continuation_indent_size = 1
79 indent_brace_style = K&R
81 block_comment_start = /*
82 block_comment_end = */