]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
editorconfig: add rst extension
authorKari Argillander <kari.argillander@gmail.com>
Fri, 19 Dec 2025 16:25:11 +0000 (18:25 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 27 Jan 2026 03:07:09 +0000 (19:07 -0800)
We have a lot of .rst documentation; use editorconfig rules for those.
This sets the default tab width to 8, which makes indentation consistent
and avoids requiring developers to adjust editor settings manually.

Link: https://lkml.kernel.org/r/20251219-editorconfig-rst-v1-1-58d4fa397664@gmail.com
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
Cc: Danny Lin <danny@kdrag0n.dev>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Mickael Salaun <mic@digikod.net>
Cc: Íñigo Huguet <ihuguet@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
.editorconfig

index b5ea32b6954b9ae16b792a397b999da1eab6f95f..69718ac91747a4d3eb3315a00b93f3e0d0215ca1 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 
-[{*.{awk,c,dts,dtsi,dtso,h,mk,s,S},Kconfig,Makefile,Makefile.*}]
+[{*.{awk,c,dts,dtsi,dtso,h,mk,rst,s,S},Kconfig,Makefile,Makefile.*}]
 charset = utf-8
 end_of_line = lf
 insert_final_newline = true