From 3e7eb3968ca1fb26b4285d9e4730f107f5264f93 Mon Sep 17 00:00:00 2001 From: Bertrand Yuan Date: Sat, 7 Mar 2026 22:09:28 +0800 Subject: add editorconfig In some cases, editorconfig would do much help formatting. --- .editorconfig | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .editorconfig 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 -- cgit v1.2.3