-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add editor config to define common coding style (#92)
Co-authored-by: Joey Turner <[email protected]>
- Loading branch information
1 parent
6483fb8
commit 67ed506
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# 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 = true | ||
insert_final_newline = true | ||
|
||
[*.patch] | ||
trim_trailing_whitespace = false | ||
|
||
[*.md] | ||
indent_style = space | ||
indent_size = 4 | ||
insert_final_newline = false | ||
|
||
[*.json] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# Custom Armbian formatting for bash sources and configuration | ||
[*.{sh,inc,conf,eos,wip,tvb,csc}] | ||
indent_size = 4 | ||
shell_variant = bash | ||
binary_next_line = false | ||
switch_case_indent = true | ||
space_redirects = true | ||
keep_padding = false | ||
function_next_line = false | ||
|
||
[*.{yaml,yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = false | ||
|
||
[*.py] | ||
indent_size = 4 | ||
max_line_length = 150 |