diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..edcc4629fb --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +# Copyright (C) Daniel Stenberg, , et al. +# +# SPDX-License-Identifier: curl + +root = true + +[*] +charset = utf-8 +insert_final_newline = true +indent_style = space +trim_trailing_whitespace = true + +[*.{c,h}] +indent_size = 2 +max_line_length = 79 + +[*.{pl,pm}] +indent_size = 4 diff --git a/Makefile.am b/Makefile.am index 08af6cd028..b5ab0442a8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -79,7 +79,7 @@ PLAN9_DIST = plan9/include/mkfile \ plan9/src/mkfile.inc \ plan9/src/mkfile -EXTRA_DIST = CHANGES.md COPYING RELEASE-NOTES Dockerfile \ +EXTRA_DIST = CHANGES.md COPYING RELEASE-NOTES Dockerfile .editorconfig \ $(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) $(PLAN9_DIST) DISTCLEANFILES = buildinfo.txt