From: Emil Velikov Date: Fri, 16 Aug 2024 13:39:57 +0000 (+0100) Subject: .editorconfig: add initial config file X-Git-Tag: v34~509 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b1848cba3aa07626d84f023a9bf7198c942ab05;p=thirdparty%2Fkmod.git .editorconfig: add initial config file Most editors support the config format out of the box and with some upcoming new yml files, I think it's great to have something in-tree to avoid miss-matched style. Copy-pasted from Mesa, with minor changes - tab for indent (C), remove irrelevant sections. Keep the meson section - meson patches will be comings shortly. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/76 Signed-off-by: Lucas De Marchi --- diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..b3bef5f8 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +# To use this config on you editor, follow the instructions at: +# http://editorconfig.org + +root = true + +[*] +charset = utf-8 +insert_final_newline = true +tab_width = 8 + +[*.{c,h}] +indent_style = tab +max_line_length = 80 + +[{Makefile*,*.mk}] +indent_style = tab + +[*.yml] +indent_style = space +indent_size = 2 + +[*.patch] +trim_trailing_whitespace = false + +[{meson.build,meson_options.txt}] +indent_style = space +indent_size = 2