Better swiftlint

This commit is contained in:
Kabir Oberai
2025-05-28 20:00:35 +05:30
Unverified
parent 3903a0ff8d
commit d995faa9f0
6 changed files with 18 additions and 20 deletions
+1 -6
View File
@@ -12,15 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install SwiftLint
run: |
curl -fSLO https://github.com/realm/SwiftLint/releases/download/0.59.1/swiftlint_linux.zip
unzip swiftlint_linux.zip swiftlint -d /usr/local/bin
rm swiftlint_linux.zip
- name: Lint
# based on https://github.com/norio-nomura/action-swiftlint
run: |
swiftlint \
make lint \
| sed -E \
-e "s/$(pwd|sed 's/\//\\\//g')\///" \
-e 's/^(.*):([0-9]+):([0-9]+): (warning|error|[^:]+): (.*)/::\4 file=\1,line=\2,col=\3::\5/' \