]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
.editorconfig: add initial config file
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 16 Aug 2024 13:39:57 +0000 (14:39 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 16 Aug 2024 22:05:43 +0000 (17:05 -0500)
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 <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/76
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..b3bef5f
--- /dev/null
@@ -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