Skip to content

Add SwiftFormat check to CI - #129

Merged
winebarrel merged 2 commits into
mainfrom
add-format-ci
Jul 9, 2026
Merged

Add SwiftFormat check to CI#129
winebarrel merged 2 commits into
mainfrom
add-format-ci

Conversation

@winebarrel

Copy link
Copy Markdown
Owner

Summary

Slackpad の CI に倣って、swiftformat --lint PagerCall を実行する Format ジョブを追加しました(macos-latest + brew install swiftformat)。

あわせて、チェックを通すためのフォーマット修正を適用しています(SwiftFormat 0.62.1):

  • PagerDutyAPI.swift: 末尾カンマの追加
  • PreActionButtonStyle.swift: 冗長なメモリワイズ init の削除

🤖 Generated with Claude Code

winebarrel and others added 2 commits July 9, 2026 17:41
Add a Format job that runs `swiftformat --lint PagerCall`, matching the
Slackpad CI setup. Also apply the formatting fixes so the check passes
(trailing comma, redundant memberwise initializers).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KvQ1BLHNVbshkwL2qTosFa
SwiftFormat's trailingCommas rule adds trailing commas, which conflicts
with SwiftLint's default trailing_comma rule. Set mandatory_comma so both
tools agree, matching the Slackpad setup.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KvQ1BLHNVbshkwL2qTosFa
@winebarrel
winebarrel merged commit 7a2e510 into main Jul 9, 2026
3 checks passed
@winebarrel
winebarrel deleted the add-format-ci branch July 9, 2026 08:59
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