]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
.editorconfig: add
authorMichał Petryka <35800402+MichalPetryka@users.noreply.github.com>
Tue, 26 Aug 2025 22:47:20 +0000 (00:47 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 2 Sep 2025 06:36:40 +0000 (08:36 +0200)
This allows IDEs that support this standard to automatically use the
correct formatting options.

Closes #18409

.editorconfig [new file with mode: 0644]
Makefile.am

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..edcc462
--- /dev/null
@@ -0,0 +1,18 @@
+# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, 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
index 08af6cd028be9bc52ea4a83c8aae98246676d3d9..b5ab0442a81da0d808f84dd06819e8da2400901d 100644 (file)
@@ -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