Changes to linter and autoformat workflow for development

- drop SwiftLint in favor of swift-format
- disable autoformatting in build phase (otherwise we loose history)
- add Git pre-commit hook to autoformat before committing
This commit is contained in:
Milan Stute
2021-03-11 09:44:08 +01:00
parent 0c9997993d
commit 3c84aae67d
5 changed files with 12 additions and 111 deletions

View File

@@ -17,14 +17,6 @@ defaults:
working-directory: OpenHaystack
jobs:
lint-swift:
runs-on: macos-latest
steps:
- name: "Checkout code"
uses: actions/checkout@v2
- name: "Run SwiftLint"
run: swiftlint --reporter github-actions-logging
format-swift:
runs-on: macos-latest
steps:
@@ -48,7 +40,6 @@ jobs:
build-app:
runs-on: macos-latest
needs:
- lint-swift
- format-swift
- format-objc
steps: