From 8d8cabd098ee6bbc3737a2afa03fb3c34c670cad Mon Sep 17 00:00:00 2001 From: chrfranke Date: Sat, 28 Jan 2017 15:31:50 +0000 Subject: [PATCH] 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 --- smartmontools/.editorconfig | 51 +++++++++++++++++++++++++++++++++++++ smartmontools/ChangeLog | 7 +++++ smartmontools/Makefile.am | 1 + 3 files changed, 59 insertions(+) create mode 100644 smartmontools/.editorconfig diff --git a/smartmontools/.editorconfig b/smartmontools/.editorconfig new file mode 100644 index 00000000..ef6035da --- /dev/null +++ b/smartmontools/.editorconfig @@ -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 diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog index 59908aa7..8fa55c86 100644 --- a/smartmontools/ChangeLog +++ b/smartmontools/ChangeLog @@ -1,5 +1,12 @@ $Id$ +2017-01-28 Christian Franke + + 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 drivedb.h: diff --git a/smartmontools/Makefile.am b/smartmontools/Makefile.am index f64b6591..ac163118 100644 --- a/smartmontools/Makefile.am +++ b/smartmontools/Makefile.am @@ -365,6 +365,7 @@ uninstall-sysconfDATA: smartdscript_SCRIPTS = smartd_warning.sh EXTRA_DIST = \ + .editorconfig \ autogen.sh \ smartd.initd.in \ smartd.freebsd.initd.in \