From: MichaƂ Petryka <35800402+MichalPetryka@users.noreply.github.com> Date: Tue, 26 Aug 2025 22:47:20 +0000 (+0200) Subject: .editorconfig: add X-Git-Tag: curl-8_16_0~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=37c6744997de712984dd73600613e4a2aa104d68;p=thirdparty%2Fcurl.git .editorconfig: add This allows IDEs that support this standard to automatically use the correct formatting options. Closes #18409 --- 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