Skip to content

Commit

Permalink
Do not run build-time SwiftLint when building in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio committed Jan 23, 2025
1 parent 1b5d37d commit af75c45
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Scripts/BuildPhases/SwiftLint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/bin/bash -e

# Do not run in CI environments.
# Our CI has its own static linter.
# As of 2025/01, this should save some 20-40s per build.
if [ -z "${CI+x}" ]; then
exit 0
fi

rake lint

0 comments on commit af75c45

Please sign in to comment.