summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorBertrand Yuan <me@bertyuan.com>2026-03-07 22:09:28 +0800
committerBertrand Yuan <me@bertyuan.com>2026-03-07 22:09:28 +0800
commit3e7eb3968ca1fb26b4285d9e4730f107f5264f93 (patch)
treec31bccbb85b15ed42a9b382de3b1b42adfec8430 /.editorconfig
parenteef6613b0e9da49ad31f55cbf728bbf08612325d (diff)
add editorconfig
In some cases, editorconfig would do much help formatting.
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig27
1 files changed, 27 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..69718ac
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,27 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+[{*.{awk,c,dts,dtsi,dtso,h,mk,rst,s,S},Kconfig,Makefile,Makefile.*}]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+indent_size = 8
+
+[*.{json,py,rs}]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = space
+indent_size = 4
+
+# this must be below the general *.py to overwrite it
+[tools/{perf,power,rcu,testing/kunit}/**.py,]
+indent_style = tab
+indent_size = 8
+
+[*.yaml]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = space
+indent_size = 2