Repository navigation
Run SwiftLint on Ubuntu with full rule coverage - #48
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
odrobnik
left a comment
There was a problem hiding this comment.
Reviewed the switch of the SwiftLint job from macOS to ubuntu-latest (inside swift:6.4.2-noble). It meets #47:
- The job runs on
ubuntu-latest, and lint is green on this head. - The SwiftLint 0.63.2 pin stays, and the version step now fails if the binary reports a different version.
swiftlint lint --strict --quietand the triggers are unchanged.
The PR uses the SourceKit-enabled swiftlint binary instead of the swiftlint-static one the issue suggested. The description explains why: the static binary skips the enabled statement_position rule. That keeps the "no rule silently skipped" requirement. A new probe step backs this up: it must fail with a statement_position error, so a missing SourceKit can't let lint pass quietly.
The install script runs under GitHub's default bash -eo pipefail, so test -r on the SourceKit library and the [[ =~ ]] version check both stop the step if they fail. $GITHUB_PATH and $GITHUB_ENV carry into the later steps, including inside the container.
One small note, not a defect: I couldn't confirm offline that SwiftLint reads SWIFTLINT_SWIFT_VERSION. If it doesn't, that line just has no effect.
No findings.
👍 No findings.
Reviewed by Claude · opus
Resolves #47.
Moved linting to an Ubuntu runner while preserving SwiftLint 0.63.2, all 99 enabled rules, strict linting, and the existing triggers. The planned static binary was replaced because it skipped an existing rule. Local builds, tests, and Linux/macOS lint verification passed; live tests requiring credentials were skipped. Hosted PR CI will verify the Ubuntu job next.