Add .editorconfig file (#2829)

# Motivation

[EditorConfig](https://editorconfig.org) helps maintain consistent
coding styles for multiple developers working on the same project across
various editors and IDEs. It will be helpful to add one of these files
to swift-testing so that all contributors use the whitespace conventions
described in our [style
guide](https://github.com/swiftlang/swift-testing/blob/main/Documentation/StyleGuide.md)
automatically when using a supported IDE/editor.

Note that Xcode 16 Beta has added support for EditorConfig files — see
20796230 in the [release
notes](https://developer.apple.com/documentation/xcode-release-notes/xcode-16-release-notes).

# Modification

This PR adds the `.editorconfig` file.

# Result

Easier to maintain a consistent style
This commit is contained in:
Franz Busch
2024-08-08 13:43:37 +01:00
committed by GitHub
parent 80af56f805
commit 4e090a37fb
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
+1
View File
@@ -7,6 +7,7 @@
.mailmap
.spi.yml
.swift-format
.editorconfig
.github/*
*.md
*.txt