Skip to content

Run SwiftLint on Ubuntu with full rule coverage - #48

Merged
odrobnik merged 1 commit into
mainfrom
agent/issue-47
Dec 1, 2026
Merged

odrobnik merged 1 commit into
mainfrom
agent/issue-47

Conversation

@odrobnik

@odrobnik odrobnik commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T22:13:36.043405Z cfa9654 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@odrobnik odrobnik left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 --quiet and 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

@odrobnik
odrobnik merged commit 1e86501 into main Dec 1, 2026
6 checks passed
@odrobnik
odrobnik deleted the agent/issue-47 branch December 1, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run SwiftLint on ubuntu-latest instead of a macOS runner

1 participant