diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2024-07-16 15:56:50 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-08-07 02:13:24 +0100 |
commit | 06c4ea1ff1c4d0fe5bb8881656b03097767017ac (patch) | |
tree | 9b21eb8bed35c50ae0bbf821e83b4ecc8f41093c /.editorconfig | |
parent | 3667c3e2d257566c8e3dfb68fac7f09190db8db4 (diff) | |
download | unit-06c4ea1ff1c4d0fe5bb8881656b03097767017ac.tar.gz unit-06c4ea1ff1c4d0fe5bb8881656b03097767017ac.tar.bz2 |
Add a basic .editorconfig file
This just sets some basic file properties; character encoding, line
endings, tabs vs spaces etc and is _not_ a replacement for a code
formatter like indent(1) or clang-format.
Link: <https://editorconfig.org/>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to '.editorconfig')
-rw-r--r-- | .editorconfig | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..86ae7df5 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,31 @@ +root = true + +[{configure,{*.{c,cpp,h,go,java,js,py,rs}}] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 4 + +[Makefile] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = tab +indent_size = 8 + +[{auto/**,*.toml}] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.yaml] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 |