]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
rasdaemon: add .editorconfig file to follow our coding style
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 19 Jul 2024 05:36:17 +0000 (07:36 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 19 Jul 2024 05:59:22 +0000 (07:59 +0200)
That helps keeping the coding style, as lots of editors support
this file.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..8820b74
--- /dev/null
@@ -0,0 +1,26 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*/contrib]
+indent_style = tab
+indent_size = 8
+
+[{*.{c,h,pl,sh},Makefile.am}]
+indent_style = tab
+indent_size = 8
+
+[*.yml,labels/*,configure.ac]
+indent_style = space
+indent_size = 2
+
+[*.py,ras-mc-ctl.in]
+indent_style = space
+indent_size = 4
+