diff options
-rw-r--r-- | .editorconfig | 24 | ||||
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | ui/qt/.editorconfig | 9 | ||||
-rw-r--r-- | ui/qt/Makefile.am | 1 |
4 files changed, 35 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..b5ad036baa --- /dev/null +++ b/.editorconfig @@ -0,0 +1,24 @@ +# +# Editor configuration +# +# http://editorconfig.org/ +# + +# Global settings + +# We're the top. We're the Coliseum. +root = true + +[*] +trim_trailing_whitespace = true +insert_final_newline = true + +# Autotools, Make, Nmake +[{Makefile.am,Makefile,Makefile.nmake,config.nmake}] +indent_style = tab + +# Python +[*.py] +indent_style = space +indent_size = 4 +charset = utf-8 diff --git a/Makefile.am b/Makefile.am index 77de2532f6..3695d42ae9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -688,6 +688,7 @@ MAINTAINERCLEANFILES = \ ylwrap EXTRA_DIST = \ + .editorconfig \ .mailmap \ INSTALL.configure \ Makefile.am.inc \ diff --git a/ui/qt/.editorconfig b/ui/qt/.editorconfig new file mode 100644 index 0000000000..2de301a74a --- /dev/null +++ b/ui/qt/.editorconfig @@ -0,0 +1,9 @@ +# Qt sources + +# Qt Creator defaults to 4 columns of spaces but doesn't yet support +# EditorConfig: +# https://bugreports.qt.io/browse/QTCREATORBUG-14013 +[*.{cpp,h}] +indent_style = space +indent_size = 4 +tab_width = 8 diff --git a/ui/qt/Makefile.am b/ui/qt/Makefile.am index 6263fcec1e..5683b06715 100644 --- a/ui/qt/Makefile.am +++ b/ui/qt/Makefile.am @@ -291,6 +291,7 @@ EXTRA_DIST = \ $(QRC_FILES) \ $(TS_FILES) \ $(QM_FILES) \ + .editorconfig \ CMakeLists.txt \ doxygen.cfg.in \ Makefile.common \ |