Skip to content

Commit

Permalink
Migrate from SwiftLint to Swift-Format & fix all
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed May 8, 2021
1 parent 4a5d0ff commit 3133276
Show file tree
Hide file tree
Showing 37 changed files with 1,649 additions and 1,955 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

swift-format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install Mint
run: git clone https://github.com/yonaskolb/Mint.git && cd Mint && make

- name: Install Swift-Format
run: mint install apple/swift-format

- name: Run Swift-Format
run: "! swift-format lint --recursive App/Sources Tests/Sources UITests/Sources 2>&1 | grep -q warning"

tests:
runs-on: macOS-latest

Expand Down
15 changes: 15 additions & 0 deletions .swift-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"lineBreakAroundMultilineExpressionChainComponents": true,
"lineBreakBeforeControlFlowKeywords": true,
"lineBreakBeforeEachArgument": true,
"lineBreakBeforeEachGenericRequirement": true,
"lineLength": 120,
"prioritizeKeepingFunctionOutputTogether": true,
"rules": {
"NeverUseImplicitlyUnwrappedOptionals": false,
"NoLeadingUnderscores": true,
"ValidateDocumentationComments": false,
},
"tabWidth": 2,
"version": 1,
}
Loading

0 comments on commit 3133276

Please sign in to comment.