mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
7259c02ee5
And move analyze CI job to Bazel Which will benefit from caching previous results, so if we make a PR that doesn't impact the analysis results (i.e. changelog or docs) we might be able to skip running this at all.
9 lines
232 B
Bash
Executable File
9 lines
232 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
readonly swiftlint="$RUNFILES_DIR/SwiftLint/swiftlint"
|
|
readonly swiftpm_yaml="$RUNFILES_DIR/SwiftLint/swiftpm.yaml"
|
|
cd "$PROJECT_ROOT"
|
|
"$swiftlint" analyze --strict --compile-commands "$swiftpm_yaml"
|