From d42ad81e2247bc6f1c30ef7be5fafc6fcfa0dfb9 Mon Sep 17 00:00:00 2001 From: Rebecca Cran Date: Wed, 1 Mar 2023 10:19:50 -0800 Subject: [PATCH] Add a .editorconfig file to tell editors basic formatting details 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 Reviewed-by: Ard Biesheuvel Acked-by: Michael D Kinney --- .editorconfig | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..bbc7cf80d6 --- /dev/null +++ b/.editorconfig @@ -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