Skip to content

Commit c08f9d8

Browse files
committed
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 <[email protected]> Signed-off-by: Alex Bennée <[email protected]> Message-Id: <[email protected]>
1 parent b165ee1 commit c08f9d8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,16 @@ emacs_mode = glsl
4747
[*.json]
4848
indent_style = space
4949
emacs_mode = python
50+
51+
# by default follow QEMU's style
52+
[*.pl]
53+
indent_style = space
54+
indent_size = 4
55+
emacs_mode = perl
56+
57+
# but user kernel "style" for imported scripts
58+
[scripts/{kernel-doc,get_maintainer.pl,checkpatch.pl}]
59+
indent_style = tab
60+
indent_size = 8
61+
emacs_mode = perl
62+

0 commit comments

Comments
 (0)