Skip to content

Switch from SwiftLint to swift-format - #81

Open
jbuckner wants to merge 1 commit into
mainfrom
swift-format
Open

Switch from SwiftLint to swift-format#81
jbuckner wants to merge 1 commit into
mainfrom
swift-format

Conversation

@jbuckner

Copy link
Copy Markdown
Owner

Closes #28. Two post-merge steps: (1) rename the required status check on main from SwiftLint to swift-format or PRs block on a check that never runs; (2) if you want a .git-blame-ignore-revs entry, add the squash SHA after merging (the reformat turned out to be trailing-whitespace only, so it may not be worth it). Merge this last; it'll need a quick main merge and format re-run after the other open PRs land.

🤖 Generated with Claude Code

https://claude.ai/code/session_015u2FT1T8yYQsEztyKg6UGf

Adds .swift-format (lineLength 120, 2-space indent), swaps the CI lint
job for swift format lint --strict, drops .swiftlint.yml, and applies
the one-time format pass (trailing whitespace only).

Closes #28

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015u2FT1T8yYQsEztyKg6UGf
Comment thread .github/workflows/ci.yml
Comment on lines +38 to +44
name: swift-format
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- name: Run SwiftLint
run: swiftlint --reporter github-actions-logging
- name: Run swift-format lint
run: swift format lint --strict --recursive InternetArchiveKit
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.12%. Comparing base (230a09a) to head (059d848).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #81      +/-   ##
==========================================
+ Coverage   91.98%   92.12%   +0.14%     
==========================================
  Files          13       13              
  Lines         686      686              
==========================================
+ Hits          631      632       +1     
+ Misses         55       54       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Switch from SwiftLint to swift-format

2 participants