.editorconfig: add

This allows IDEs that support this standard to automatically use the
correct formatting options.

Closes #18409
This commit is contained in:
Michał Petryka
2025-08-27 00:47:20 +02:00
committed by Daniel Stenberg
parent f8e6e11725
commit 37c6744997
2 changed files with 19 additions and 1 deletions

18
.editorconfig Normal file
View File

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

View File

@@ -79,7 +79,7 @@ PLAN9_DIST = plan9/include/mkfile \
plan9/src/mkfile.inc \ plan9/src/mkfile.inc \
plan9/src/mkfile 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) $(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) $(PLAN9_DIST)
DISTCLEANFILES = buildinfo.txt DISTCLEANFILES = buildinfo.txt