From c504a9468ac1340cba9b6ee409cf70dcca03211a Mon Sep 17 00:00:00 2001 From: "Eric T. Johnson" Date: Mon, 17 Jun 2024 22:05:01 -0400 Subject: [PATCH] Add EditorConfig file --- .editorconfig | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..06a45f18a1 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,49 @@ +# http://EditorConfig.org +# +# precedence of rules is bottom to top + +# this is the top-most EditorConfig file +root = true + + +[*.{c,h,cpp,hpp,H,py}] +# 4 space indentation +indent_style = space +indent_size = 4 + +# Clean up trailing whitespace +trim_trailing_whitespace = true + +# unix-style newlines +end_of_line = lf + +# newline ending in files +insert_final_newline = true + + +[*.md] +# two end of line whitespaces are newlines without a paragraph +trim_trailing_whitespace = false + + +[*.rst] +# Enforce UTF-8 encoding +charset = utf-8 + +# Unix-style newlines +end_of_line = lf + +# Newline ending in files +insert_final_newline = true + +# 3 space indentation +indent_style = space +indent_size = 3 + +# Clean up trailing whitespace +trim_trailing_whitespace = true + +[{Makefile,GNUmakefile,Make.*}] +# TABs are part of its syntax +indent_style = tab +indent_size = unset