chore: Add .editorconfig files

This commit is contained in:
Cosmin Truta 2024-01-31 13:04:26 +02:00
parent 4356cb0709
commit 2d7da9db8a
5 changed files with 78 additions and 0 deletions

38
.editorconfig Normal file
View File

@ -0,0 +1,38 @@
# https://editorconfig.org
root = true
[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
# Traditionally, the end-of-line character has been platform-specific.
end_of_line = unset
[*.[chS]]
indent_style = space
max_line_length = 81
[*.{awk,cmake,dfa,in,sh}]
indent_style = space
max_line_length = 100
[*.txt]
indent_style = space
max_line_length = unset
[{Makefile.in,ltmain.sh}]
indent_style = unset
insert_final_newline = unset
max_line_length = unset
trim_trailing_whitespace = unset
[*~]
indent_style = unset
insert_final_newline = unset
max_line_length = unset
trim_trailing_whitespace = unset
[COMMIT_EDITMSG]
max_line_length = 72

13
contrib/.editorconfig Normal file
View File

@ -0,0 +1,13 @@
# https://editorconfig.org
root = false
[*]
charset = unset
end_of_line = unset
indent_size = unset
indent_style = unset
insert_final_newline = unset
max_doc_length = unset
max_line_length = unset
trim_trailing_whitespace = unset

7
loongarch/.editorconfig Normal file
View File

@ -0,0 +1,7 @@
# https://editorconfig.org
root = false
# FIXME
[*.[ch]]
max_line_length = unset

7
powerpc/.editorconfig Normal file
View File

@ -0,0 +1,7 @@
# https://editorconfig.org
root = false
# FIXME
[*.[ch]]
max_line_length = unset

13
projects/.editorconfig Normal file
View File

@ -0,0 +1,13 @@
# https://editorconfig.org
root = false
[*]
charset = unset
end_of_line = unset
indent_size = unset
indent_style = unset
insert_final_newline = unset
max_doc_length = unset
max_line_length = unset
trim_trailing_whitespace = unset