From 2d7da9db8af6ea6b76948cc4e3d5e25958c9bf0b Mon Sep 17 00:00:00 2001 From: Cosmin Truta Date: Wed, 31 Jan 2024 13:04:26 +0200 Subject: [PATCH] chore: Add .editorconfig files --- .editorconfig | 38 ++++++++++++++++++++++++++++++++++++++ contrib/.editorconfig | 13 +++++++++++++ loongarch/.editorconfig | 7 +++++++ powerpc/.editorconfig | 7 +++++++ projects/.editorconfig | 13 +++++++++++++ 5 files changed, 78 insertions(+) create mode 100644 .editorconfig create mode 100644 contrib/.editorconfig create mode 100644 loongarch/.editorconfig create mode 100644 powerpc/.editorconfig create mode 100644 projects/.editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..34a145d4c --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/contrib/.editorconfig b/contrib/.editorconfig new file mode 100644 index 000000000..bd9b590d3 --- /dev/null +++ b/contrib/.editorconfig @@ -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 diff --git a/loongarch/.editorconfig b/loongarch/.editorconfig new file mode 100644 index 000000000..b142d823b --- /dev/null +++ b/loongarch/.editorconfig @@ -0,0 +1,7 @@ +# https://editorconfig.org + +root = false + +# FIXME +[*.[ch]] +max_line_length = unset diff --git a/powerpc/.editorconfig b/powerpc/.editorconfig new file mode 100644 index 000000000..b142d823b --- /dev/null +++ b/powerpc/.editorconfig @@ -0,0 +1,7 @@ +# https://editorconfig.org + +root = false + +# FIXME +[*.[ch]] +max_line_length = unset diff --git a/projects/.editorconfig b/projects/.editorconfig new file mode 100644 index 000000000..bd9b590d3 --- /dev/null +++ b/projects/.editorconfig @@ -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