Skip to content

Pin SwiftLint to 0.55.1 in Lint Workflow#1819

Merged
jaxdesmarais merged 1 commit into
mainfrom
ci/pin-swiftlint-0.55.1
Jun 10, 2026
Merged

Pin SwiftLint to 0.55.1 in Lint Workflow#1819
jaxdesmarais merged 1 commit into
mainfrom
ci/pin-swiftlint-0.55.1

Conversation

@jaxdesmarais

Copy link
Copy Markdown
Contributor

Summary of changes

The lint workflow installed SwiftLint via an unpinned brew install, which recently pulled 0.63.3. That version changed the force_unwrapping rule so it no longer triggers on several Demo files, making their existing swiftlint:disable comments superfluous. Under --strict, superfluous_disable_command then failed lint on unrelated PRs.

Pin to 0.55.1 (the version documented in .swiftlint.yml and CLAUDE.md) by installing the homebrew-core formula at the commit for that version, so CI lint is reproducible.

AI Usage

Which AI Agent Was Used?

  • Copilot
  • Claude
  • Other (Type Name Here)

How was AI used?
Used to triage and troubleshoot issue

Estimated AI Code Contribution

  • less than 30%
  • 30 - 60%
  • 60 - 100%

Checklist

  • [ ] Added a changelog entry
  • [ ] Tested and confirmed payment flows affected by this change are functioning as expected

Authors

@jaxdesmarais jaxdesmarais requested a review from a team June 10, 2026 16:07
@jaxdesmarais jaxdesmarais requested a review from a team as a code owner June 10, 2026 16:07
@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities found.

Scanned Files

None

The lint workflow installed SwiftLint via an unpinned `brew install`, which
recently pulled 0.63.3. That version changed the `force_unwrapping` rule so it
no longer triggers on several Demo files, making their existing
`swiftlint:disable` comments superfluous. Under `--strict`,
`superfluous_disable_command` then failed lint on unrelated PRs.

Pin to 0.55.1 (the version documented in .swiftlint.yml and CLAUDE.md) by
installing the official SwiftLint release binary, so CI lint is reproducible.
A loose homebrew-core formula file can't be used because current Homebrew
rejects formulae that aren't in a tap.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jaxdesmarais jaxdesmarais force-pushed the ci/pin-swiftlint-0.55.1 branch from 3412750 to 93330ec Compare June 10, 2026 16:10
# via the official release binary. An unpinned `brew install` pulls the
# latest SwiftLint, which breaks `--strict` lint on unrelated PRs, and
# current Homebrew refuses to install a formula from a loose file path.
run: |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for this comment. Helps explain the issue and fix perfectly

@agedd agedd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ty for fixing this!

@jaxdesmarais jaxdesmarais merged commit 8c4d4cc into main Jun 10, 2026
26 of 28 checks passed
@jaxdesmarais jaxdesmarais deleted the ci/pin-swiftlint-0.55.1 branch June 10, 2026 19:49
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.

3 participants