Skip to content

Commit

Permalink
setup swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
ski-u committed Oct 21, 2024
1 parent d62fc55 commit 4d5721c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: SwiftFormat
name: swift-format

on:
push:
Expand All @@ -11,14 +11,14 @@ jobs:
runs-on: macos-15
steps:
- uses: actions/checkout@v2
- name: Install SwiftFormat
run: brew install swiftformat
- name: Run SwiftFormat
run: swiftformat --verbose .
- name: Install swift-format
run: brew install swift-format
- name: Run swift-format
run: swift-format . --in-place --recursive --configuration .swift-format
- uses: peter-evans/create-pull-request@v6
with:
commit-message: run SwiftFormat
commit-message: run swift-format
delete-branch: true
title: Run SwiftFormat
title: Run swift-format
reviewers: ski-u
branch: run-swiftformat
branch: run-swift-format
18 changes: 18 additions & 0 deletions .swift-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 1,
"lineLength": 120,
"indentation": {
"spaces": 4
},
"lineBreakBeforeEachArgument": true,
"indentConditionalCompilationBlocks": false,
"prioritizeKeepingFunctionOutputTogether": true,
"rules": {
"AlwaysUseLowerCamelCase": false,
"AmbiguousTrailingClosureOverload": false,
"NoBlockComments": false,
"OrderedImports": true,
"UseLetInEveryBoundCaseVariable": false,
"UseSynthesizedInitializer": false
}
}

0 comments on commit 4d5721c

Please sign in to comment.