[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 27/37] editorconfig: update for perl scripts
From: |
Alex Bennée |
Subject: |
[PATCH v2 27/37] editorconfig: update for perl scripts |
Date: |
Tue, 14 Jan 2025 11:38:11 +0000 |
We have two types of perl scripts in the tree. The ones from the
kernel are mostly tab based where as scripts we have written ourselves
use 4 space indentation.
Attempt to codify that in our .editorconfig
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
.editorconfig | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/.editorconfig b/.editorconfig
index 7303759ed7..a04cb9054c 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -47,3 +47,16 @@ emacs_mode = glsl
[*.json]
indent_style = space
emacs_mode = python
+
+# by default follow QEMU's style
+[*.pl]
+indent_style = space
+indent_size = 4
+emacs_mode = perl
+
+# but user kernel "style" for imported scripts
+[scripts/{kernel-doc,get_maintainer.pl,checkpatch.pl}]
+indent_style = tab
+indent_size = 8
+emacs_mode = perl
+
--
2.39.5
- [PATCH v2 37/37] scripts/nsis.py: Run dependency check for each DLL file only once, (continued)
- [PATCH v2 37/37] scripts/nsis.py: Run dependency check for each DLL file only once, Alex Bennée, 2025/01/14
- [PATCH v2 18/37] contrib/plugins/cflow: fix 32-bit build, Alex Bennée, 2025/01/14
- [PATCH v2 28/37] tests/qtest: fix some copy and paste errors in kdoc, Alex Bennée, 2025/01/14
- [PATCH v2 29/37] include/exec: fix some copy and paste errors in kdoc, Alex Bennée, 2025/01/14
- [PATCH v2 24/37] docs/devel/style: add a section about bitfield, and disallow them for packed structures, Alex Bennée, 2025/01/14
- [PATCH v2 21/37] configure: reenable plugins by default for 32-bit hosts, Alex Bennée, 2025/01/14
- [PATCH v2 32/37] docs/devel: add git-publish for patch submitting, Alex Bennée, 2025/01/14
- [PATCH v2 19/37] contrib/plugins/hwprofile: fix 32-bit build, Alex Bennée, 2025/01/14
- [PATCH v2 27/37] editorconfig: update for perl scripts,
Alex Bennée <=
- [PATCH v2 31/37] docs/sphinx: include kernel-doc script as a dependency, Alex Bennée, 2025/01/14
- [PATCH v2 20/37] contrib/plugins/hotpages: fix 32-bit build, Alex Bennée, 2025/01/14
- [PATCH v2 23/37] win32: remove usage of attribute gcc_struct, Alex Bennée, 2025/01/14
- [PATCH v2 30/37] include/exec: remove warning_printed from MemoryRegion, Alex Bennée, 2025/01/14
- [PATCH v2 22/37] accel/tcg: also suppress asynchronous IRQs for cpu_io_recompile, Alex Bennée, 2025/01/14