1 # EditorConfig is awesome: https://EditorConfig.org
2 # https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
4 # top-most EditorConfig file
9 insert_final_newline = true
10 trim_trailing_whitespace = true
19 # Platform-dependent, except for certain interpreters
20 # whose sources must use LF, see .gitattributes
23 #ij_formatter_enabled = false
26 trim_trailing_whitespace = false
31 [*.{am,hwdb,service,target,path}{,.in}]
39 # Borrowed from https://github.com/armbian/build/blob/master/.editorconfig
41 binary_next_line = false
42 switch_case_indent = true
43 space_redirects = true
45 function_next_line = false
51 [*.{conf,sample}{,.in}]
55 [*.txt{,.in},*.adoc{,.in},AUTHORS,COPYING,INSTALL.nut,MAINTAINERS,NEWS,README,TODO,UPGRADING]
60 # Assumes asciidoc comments:
61 block_comment_start = ////////
62 block_comment_end = ////////
64 [*.{yaml,yml,json}{,.in}]
68 ################################################################
69 # Primary concern: C/C++ style
70 # See also docs/developers.txt => Code Style chapter
73 spaces_around_operators = true
74 spaces_around_brackets = none
77 continuation_indent_size = 1
79 indent_brace_style = K&R
81 block_comment_start = /*
82 block_comment_end = */