mirror of
https://github.com/xtool-org/xtool.git
synced 2026-11-20 18:38:03 +03:00
Better swiftlint
This commit is contained in:
@@ -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/' \
|
||||
|
||||
Reference in New Issue
Block a user