Skip to content

Commit

Permalink
Add editor config to define common coding style (#92)
Browse files Browse the repository at this point in the history
Co-authored-by: Joey Turner <[email protected]>
  • Loading branch information
igorpecovnik and Tearran authored Sep 22, 2024
1 parent 6483fb8 commit 67ed506
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .editorconfig
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

0 comments on commit 67ed506

Please sign in to comment.