Skip to content

Commit

Permalink
Add a .editorconfig file to tell editors basic formatting details
Browse files Browse the repository at this point in the history
Add a .editorconfig file which editors can use for basic formatting
details of files, such as tabs/spaces, line endings etc.

Signed-off-by: Rebecca Cran <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Acked-by: Michael D Kinney <[email protected]>
  • Loading branch information
bexcran authored and mergify[bot] committed Sep 8, 2023
1 parent 28a74d7 commit d42ad81
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# EditorConfig file: https://EditorConfig.org

root = true

[*]
charset = latin1
end_of_line = crlf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.py]
charset = utf-8
indent_style = space
indent_size = 4

[*.sh]
end_of_line = lf

[.gitattributes]
end_of_line = lf

[.mailmap]
charset = utf-8

[Maintainers.txt]
charset = utf-8

[Makefile,GNUmakefile]
indent_style = tab

0 comments on commit d42ad81

Please sign in to comment.