From e427dd86740ee1cc7b04c6c5ff9bb33b9d7ca574 Mon Sep 17 00:00:00 2001 From: evpobr Date: Mon, 3 Apr 2017 15:01:52 +0500 Subject: [PATCH] Add .editorconfig EditorConfig (http://editorconfig.org/) helps developers define and maintain consistent coding styles between different editors and IDEs. Signed-off-by: Erik de Castro Lopo Closes: https://github.com/erikd/libsndfile/pull/173 --- .editorconfig | 16 ++++++++++++++++ Makefile.am | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..f8911427 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +root = true + +[*] +insert_final_newline = true + +[*.{h,hpp,c,tpl,def}] +indent_style = tab +tab_width = 4 + +[*.py] +indent_style = space +indent_size = 4 + +[*.yml] +indent_style = space +indent_size = 2 diff --git a/Makefile.am b/Makefile.am index 181f5806..b9d912a2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,7 +20,7 @@ EXTRA_DIST = libsndfile.spec.in sndfile.pc.in Scripts/android-configure.sh \ Scripts/linux-to-win-cross-configure.sh Scripts/build-test-tarball.mk.in \ CMakeLists.txt CMake/autogen.cmake CMake/build.cmake CMake/check.cmake \ CMake/compiler_is_gcc.c CMake/external_libs.cmake CMake/file.cmake \ - CMake/have_decl_s_irgrp.c CMake/libsndfile.cmake + CMake/have_decl_s_irgrp.c CMake/libsndfile.cmake .editorconfig CLEANFILES = *~