Files
SwiftLint/script/test-analyze.sh
T
JP Simard 7259c02ee5 Teach --compile-commands to parse SwiftPM yaml files (#4119)
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.
2022-08-23 11:01:13 -04:00

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"