From c9bf44a76d83f585a3926459bde6f776d0a08cc1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksey=20Kliger=20=28=CE=BBgeek=29?= Date: Fri, 18 Sep 2020 09:36:01 -0400 Subject: [PATCH] Add a minimal .editorconfig for Mono C files (#42286) --- src/mono/mono/.editorconfig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/mono/mono/.editorconfig diff --git a/src/mono/mono/.editorconfig b/src/mono/mono/.editorconfig new file mode 100644 index 0000000..6cf31b1 --- /dev/null +++ b/src/mono/mono/.editorconfig @@ -0,0 +1,21 @@ +[*] +# We don't like trailing whitespace, but there are a lot of existing files that have it. Don't automatically reformat them. +trim_trailing_whitespace = false + +# See https://www.mono-project.com/community/contributing/coding-guidelines/ +# Tabs, not spaces. 8 columns. Braces don't go on a new line (except +# at the beginning of a function). Space before opening parenthesis +# for function calls. +[*.{c,cpp,h,def}] +indent_style = tab +indent_size = 8 +indent_brace_style = K&R +curly_bracket_next_line = false +spaces_around_operators = true +spaces_around_brackets = outside + +[Makefile*] +indent_style = tab + +[*.mk] +indent_style = tab -- 2.7.4