Skip to content

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

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

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

Conversation

@germ-mark

Copy link
Copy Markdown
Contributor

Copies the existing org-standard .swift-format convention, runs swift format format -i across the tree, fixes the two real strict-lint failures (a sha2_256sha256 naming fix, an over-length trailing comment), and adds a CI job enforcing swift format lint --strict so it can't silently drift again. Also 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 4 commits August 19, 2026 00:17
.swift-format already matched jxl-encoder-swift's config byte-for-
byte but wasn't enforced anywhere. Reformatted (swift format format
-i --recursive) and fixed the two real lint failures it surfaced:
a snake_case constant (sha2_256 -> sha2256) and an over-length
end-of-line comment in Point.swift, moved above the line.

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>
New standalone job in ci-linux.yml, since linting only needs the
Swift toolchain — no package resolution, private SSH deploy keys,
or Xcode pinning like the other workflows.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The strict-lint fix for sha2_256 dropped the underscore literally
instead of using the conventional name.

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: be5fa3f

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 8ff0e6c into main Aug 19, 2026
7 checks passed
@germ-mark
germ-mark deleted the llm/swift-format-lint branch August 19, 2026 17:19
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