Skip to content

ci(github-actions): flip lint.yml SwiftFormat to hard-fail (PR #149 follow-up) - #151

Merged
wei18 merged 1 commit into
mainfrom
ci/lint-swiftformat-hard-fail
May 26, 2026
Merged

wei18 merged 1 commit into
mainfrom
ci/lint-swiftformat-hard-fail

Conversation

@wei18

@wei18 wei18 commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

PR #149 (now merged at `0c699fd`) landed `.swiftformat` option (b) relaxed-baseline config — 244/244 files compliant. This PR flips `.github/workflows/lint.yml` SwiftFormat step from `continue-on-error: true` (the PR #147 advisory mode) to hard-fail.

Future Swift drift in PRs now blocks merge if the new `.swiftformat` rules are violated. Matches lefthook local enforcement.

Closes the N3 post-merge follow-up from PR #149 CR.

Single-line config flip + inline comment update explaining the escape hatch (if a future PR genuinely needs broader violations, update .swiftformat in the same PR or flip back to advisory temporarily).

Test plan

  • Next PR touching .swift files — verify swiftformat step runs and would fail on intentional violation

🤖 Generated with Claude Code

…ollow-up)

PR #149 landed `.swiftformat` option (b) relaxed-baseline config.
244/244 files now compliant with the pinned ruleset, so the advisory
`continue-on-error: true` guard from PR #147 is no longer needed.

Removes the guard + updates the inline comment to reference the new
state + escape hatch for future broad-violations regressions.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@wei18
wei18 merged commit fb7a987 into main May 26, 2026
2 checks passed
@wei18
wei18 deleted the ci/lint-swiftformat-hard-fail branch May 26, 2026 06:16
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