From 7a8cfcac05208e60fe1a8cc3f019be1314f19009 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 11 Mar 2023 19:38:50 -1000 Subject: [PATCH] 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. --- .editorconfig | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..8af2ca8f --- /dev/null +++ b/.editorconfig @@ -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