From 4e090a37fbb068d306b0af5cb7d046dce9439a40 Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Thu, 8 Aug 2024 13:43:37 +0100 Subject: [PATCH] Add `.editorconfig` file (#2829) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 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 --- .editorconfig | 8 ++++++++ .licenseignore | 1 + 2 files changed, 9 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..08891d83f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true \ No newline at end of file diff --git a/.licenseignore b/.licenseignore index b12e595c0..27dc3cc40 100644 --- a/.licenseignore +++ b/.licenseignore @@ -7,6 +7,7 @@ .mailmap .spi.yml .swift-format +.editorconfig .github/* *.md *.txt