diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2025-01-16 16:02:56 +0000 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2025-01-17 10:45:38 +0000 |
commit | c08f9d8dec26133e86e1420092742632e58a1d3f (patch) | |
tree | f8b9f3815143749537c3e3e3b0d6b01e63de7e07 | |
parent | b165ee1916b716043d452cae233fae9175ca5846 (diff) | |
download | qemu-c08f9d8dec26133e86e1420092742632e58a1d3f.zip qemu-c08f9d8dec26133e86e1420092742632e58a1d3f.tar.gz qemu-c08f9d8dec26133e86e1420092742632e58a1d3f.tar.bz2 |
editorconfig: update for perl scripts
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>
-rw-r--r-- | .editorconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig index 7303759..a04cb90 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 + |