Add ident style configuration for EditorConfig (http://editorconfig.org/):

.editorconfig: New file.
Makefile.am: Add new file to source tarball.

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@4385 4ea69e1a-61f1-4043-bf83-b5c94c648137
pull/1/merge
chrfranke 2017-01-28 15:31:50 +00:00
parent fba88fe1ca
commit 8d8cabd098
3 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,51 @@
# smartmontools indent style settings for EditorConfig
# http://editorconfig.org/
# $Id$
# 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
[/os_win32/syslog_win32.cpp]
indent_style = tab
indent_size = 4
tab_width = 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

View File

@ -1,5 +1,12 @@
$Id$
2017-01-28 Christian Franke <franke@computer.org>
Add ident style configuration for EditorConfig
(http://editorconfig.org/):
.editorconfig: New file.
Makefile.am: Add new file to source tarball.
2017-01-21 Christian Franke <franke@computer.org>
drivedb.h:

View File

@ -365,6 +365,7 @@ uninstall-sysconfDATA:
smartdscript_SCRIPTS = smartd_warning.sh
EXTRA_DIST = \
.editorconfig \
autogen.sh \
smartd.initd.in \
smartd.freebsd.initd.in \