]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
.editorconfig: add sh(ell) section
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 2 Sep 2024 17:58:35 +0000 (18:58 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 3 Sep 2024 01:13:16 +0000 (20:13 -0500)
The existing in-tree (two) shell scripts are of fairly mixed style.
With indent_size being 0, 4, 8 and indent_style both space and tab.

The more common instance seems to be 4 spaces, so add that to the
config. Updating existing scripts is deferred for another time.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/86
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
.editorconfig

index b3bef5f88c0874b86d329a02ac8b9cd6ed916c11..cc1750853c2fcdd633658af1f1e755ddac763b0c 100644 (file)
@@ -15,6 +15,10 @@ max_line_length = 80
 [{Makefile*,*.mk}]
 indent_style = tab
 
+[*.sh]
+indent_style = space
+indent_size = 4
+
 [*.yml]
 indent_style = space
 indent_size = 2