summaryrefslogtreecommitdiffstats
path: root/.editorconfig
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:14:45 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:14:45 +0000
commit43e8530e93493bb978c446a2023134bdd4277e50 (patch)
treee8c0d3c0c394b17381f48fb2d288f166b4f22440 /.editorconfig
parentInitial commit. (diff)
downloadsmartmontools-upstream.tar.xz
smartmontools-upstream.zip
Adding upstream version 7.4.upstream/7.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig46
1 files changed, 46 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..45aefff
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,46 @@
+# smartmontools indent style settings for EditorConfig
+# https://editorconfig.org/
+# $Id: .editorconfig 5497 2023-07-10 16:18:14Z chrfranke $
+
+# top-most file
+root = true
+
+[*]
+indent_style = space
+indent_size = 2
+tab_width = 8
+
+[/ChangeLog]
+indent_style = tab
+indent_size = 8
+
+[Makefile*]
+# Rule recipes require tab characters (spaces are used elsewhere)
+indent_style = tab
+indent_size = 8
+
+# TODO: Fix files with other indent styles
+[/scsiata.cpp]
+# indent_size = 2 and 4
+
+[/scsicmds.*]
+indent_size = 4
+
+[/scsiprint.cpp]
+indent_size = 4
+
+# Keep indent style of imported files as is
+[/*_nvme_ioctl.h]
+indent_style = tab
+indent_size = 8
+
+[/csmisas.h]
+indent_size = 3
+
+[/getopt/getopt.*]
+indent_style = tab
+indent_size = 2
+
+[/regex/reg*.*]
+indent_style = tab
+indent_size = 2