From d4af766081bacf48dcb0b974f03f7c4821d5b623 Mon Sep 17 00:00:00 2001 From: Daniel Xu Date: Mon, 27 Jul 2020 18:57:15 -0700 Subject: [PATCH] btrfs-progs: add basic .editorconfig Not all contributors work on projects that use linux kernel coding style. This commit adds a basic editorconfig [0] to assist contributors with managing configuration. [0]: https://editorconfig.org/ Reviewed-by: Qu Wenruo Reviewed-by: Neal Gompa Signed-off-by: Daniel Xu Signed-off-by: David Sterba --- .editorconfig | 10 ++++++++++ .gitignore | 1 + 2 files changed, 11 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..7e15c503 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +charset = utf-8 +indent_style = tab +indent_size = 8 + +[*.py] +indent_size = 4 diff --git a/.gitignore b/.gitignore index aadf9ae7..1c70ec94 100644 --- a/.gitignore +++ b/.gitignore @@ -65,6 +65,7 @@ /cscope.in.out /cscope.po.out .* +!.editorconfig /Documentation/Makefile /Documentation/*.html