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