Skip to content

Adopt swift-format, enforce lint in CI - #128

Merged
germ-mark merged 3 commits into
mainfrom
llm/swift-format-lint
Aug 19, 2026
Merged

Adopt swift-format, enforce lint in CI#128
germ-mark merged 3 commits into
mainfrom
llm/swift-format-lint

Conversation

@germ-mark

Copy link
Copy Markdown
Contributor

Runs swift-format across the tree (config already present but unenforced, or newly added where missing), fixes any real strict-lint failures, adds a CI job running swift format lint --strict, and adds .git-blame-ignore-revs for the reformat commit.

Part of an org-wide sweep bringing consistent swift-format lint to Germ's standalone Swift packages.

germ-mark and others added 3 commits August 19, 2026 01:42
.swift-format ({"indentation": {"tabs": 1}}) was already committed but
unenforced. Ran swift format format -i --recursive, then fixed the one
real lint failure (an over-length end-of-line comment in
PQInvitationTests.swift). Left Sources/TwoMLSPQBinding/two_mls_pq.swift
alone — it's uniffi-autogenerated ("don't mess with it", swiftlint
disabled) and gets re-synced from the Rust build, so formatting it here
would just drift again on the next re-sync.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Keeps git blame (and GitHub's blame view) attributing lines to their
original author instead of the mass-reformat commit.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
.swift-format was committed but nothing ran it. Scoped to
Sources/TwoMLSPQ + Tests — Sources/TwoMLSPQBinding/two_mls_pq.swift is
uniffi-autogenerated and re-synced from the Rust build, so it isn't a
useful lint target.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 9008562

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@germ-mark
germ-mark merged commit c501f9d into main Aug 19, 2026
10 checks passed
@germ-mark
germ-mark deleted the llm/swift-format-lint branch August 19, 2026 18:07
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.

1 participant