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 <erikd@mega-nerd.com>
Closes: https://github.com/erikd/libsndfile/pull/173
This commit is contained in:
evpobr 2017-04-03 15:01:52 +05:00 committed by Erik de Castro Lopo
parent 5bcfd5ff0a
commit e427dd8674
2 changed files with 17 additions and 1 deletions

16
.editorconfig Normal file
View File

@ -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

View File

@ -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 \ Scripts/linux-to-win-cross-configure.sh Scripts/build-test-tarball.mk.in \
CMakeLists.txt CMake/autogen.cmake CMake/build.cmake CMake/check.cmake \ CMakeLists.txt CMake/autogen.cmake CMake/build.cmake CMake/check.cmake \
CMake/compiler_is_gcc.c CMake/external_libs.cmake CMake/file.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 = *~ CLEANFILES = *~