Skip to content

Commit fdf8c01

Browse files
committed
wip
1 parent 6a07494 commit fdf8c01

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.github/workflows/format.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: format
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "**"
7+
8+
concurrency:
9+
group: format-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
format:
14+
name: swiftformat
15+
runs-on: macos-13
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Format
19+
run: swiftformat .
20+
- uses: stefanzweifel/git-auto-commit-action@v4
21+
with:
22+
commit_message: Run SwiftFormat
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5.7

.swiftformat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
--exclude Introspect,IntrospectTests
2+
--disable redundantNilInit,redundantSelf,redundantType,unusedArguments
3+
4+
--header strip
5+
--indent 4
6+
--ifdef no-indent
7+
--extensionacl on-declarations
8+
--patternlet inline

0 commit comments

Comments
 (0)