[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 27/37] editorconfig: update for perl scripts
From: |
Alex Bennée |
Subject: |
[PULL 27/37] editorconfig: update for perl scripts |
Date: |
Fri, 17 Jan 2025 13:42:46 +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
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250116160306.1709518-28-alex.bennee@linaro.org>
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
- [PULL 16/37] contrib/plugins/cache: fix 32-bit build, (continued)
- [PULL 16/37] contrib/plugins/cache: fix 32-bit build, Alex Bennée, 2025/01/17
- [PULL 17/37] contrib/plugins/hotblocks: fix 32-bit build, Alex Bennée, 2025/01/17
- [PULL 10/37] system: propagate Error to gdbserver_start (and other device setups), Alex Bennée, 2025/01/17
- [PULL 15/37] contrib/plugins/stoptrigger: fix 32-bit build, Alex Bennée, 2025/01/17
- [PULL 23/37] win32: remove usage of attribute gcc_struct, Alex Bennée, 2025/01/17
- [PULL 12/37] contrib/plugins/howvec: ensure we don't regress if this plugin is extended, Alex Bennée, 2025/01/17
- [PULL 36/37] docs: add a glossary, Alex Bennée, 2025/01/17
- [PULL 30/37] include/exec: remove warning_printed from MemoryRegion, Alex Bennée, 2025/01/17
- [PULL 29/37] include/exec: fix some copy and paste errors in kdoc, Alex Bennée, 2025/01/17
- [PULL 14/37] tests/tcg/plugins/mem: fix 32-bit build, Alex Bennée, 2025/01/17
- [PULL 27/37] editorconfig: update for perl scripts,
Alex Bennée <=
- [PULL 06/37] semihosting/console: Avoid including 'cpu.h', Alex Bennée, 2025/01/17
- [PULL 09/37] system: squash usb_parse into a single function, Alex Bennée, 2025/01/17
- [PULL 22/37] accel/tcg: also suppress asynchronous IRQs for cpu_io_recompile, Alex Bennée, 2025/01/17
- [PULL 28/37] tests/qtest: fix some copy and paste errors in kdoc, Alex Bennée, 2025/01/17
- [PULL 33/37] docs/devel: add b4 for patch retrieval, Alex Bennée, 2025/01/17
- [PULL 35/37] docs/devel: add a codebase section, Alex Bennée, 2025/01/17
- [PULL 26/37] plugins: fix kdoc annotation, Alex Bennée, 2025/01/17
- [PULL 34/37] docs/devel: add information on how to setup build environments, Alex Bennée, 2025/01/17
- [PULL 19/37] contrib/plugins/hwprofile: fix 32-bit build, Alex Bennée, 2025/01/17
- [PULL 37/37] scripts/nsis.py: Run dependency check for each DLL file only once, Alex Bennée, 2025/01/17