Skip to content

Commit 2f8edab

Browse files
committed
Enforce formatting in CI
Update the GitHub workflows to enfore formatting, and include instructions on how to configure `git blame` to ignore the formatting commit.
1 parent 5e1d6a3 commit 2f8edab

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Formatting repository
2+
5e1d6a3003d7de46912cd263bb3144a860831289

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
with:
5858
license_header_check_project_name: "Swift"
5959
api_breakage_check_enabled: false
60-
format_check_enabled: false
60+
format_check_enabled: true
6161

6262
space-format-check:
6363
name: Space format check

.licenseignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
.swift-version
99
CODEOWNERS
1010
Package.swift
11+
.git-blame-ignore-revs

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ code of conduct defined by the Contributor Covenant. This document is used
6464
across many open source communities, and we think it articulates our values
6565
well. For more, see the [Code of Conduct](https://swift.org/code-of-conduct/).
6666

67+
Once the repository is clone, configure your local repository so blame ignores some commits:
68+
69+
```
70+
git config blame.ignoreRevsFile .git-blame-ignore-revs
71+
```
72+
73+
6774
License
6875
-------
6976
See https://swift.org/LICENSE.txt for license information.

0 commit comments

Comments
 (0)