SCP: Add .editorconfig which describes the project's long standing convention
This will hopefully automatically get small changes to adhere to the conventions without them slipping through in the future.
This commit is contained in:
parent
decbe5b76b
commit
7a8cfcac05
1 changed files with 28 additions and 0 deletions
28
.editorconfig
Normal file
28
.editorconfig
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# EditorConfig: https://editorconfig.org/
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*.{c,h}]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = crlf
|
||||||
|
indent_style = space
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
# Makefiles
|
||||||
|
[{{M,m}akefile,descrip.mms}]
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
indent_style = tab
|
||||||
|
end_of_line = crlf
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
# Other text files
|
||||||
|
[*.{txt,ini,md,simh,.editorconfig}]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = crlf
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
# Git commit messages
|
||||||
|
[{COMMIT_EDITMSG,MERGE_MSG}]
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
max_line_length = 80
|
||||||
|
indent_style = space
|
Loading…
Add table
Reference in a new issue