Skip to content

fix(ios): clear the three SwiftLint violations failing CI - #40

Merged
BunsDev merged 1 commit into
mainfrom
fix/swiftlint-whitespace
Aug 3, 2026
Merged

fix(ios): clear the three SwiftLint violations failing CI#40
BunsDev merged 1 commit into
mainfrom
fix/swiftlint-whitespace

Conversation

@BunsDev

@BunsDev BunsDev commented Aug 3, 2026

Copy link
Copy Markdown
Member

iOS app build has been red on main at the SwiftLint step, not at compile. All three violations are whitespace and none affect behaviour:

file line violation
RootView.swift 302 trailing_newline — file ended with three newlines instead of one
RootView.swift 302 vertical_whitespace — 2 blank lines
ChatView.swift 47 vertical_whitespace — double blank before canSend

The diff is 3 deleted blank lines and nothing else.

Verification

Ran CI's exact command locally (swiftlint lint --strict, SwiftLint 0.63.2, the same version brew install swiftlint provides):

Done linting! Found 0 violations, 0 serious in 97 files.

down from Found 3 violations, 3 serious in 97 files.

This only unblocks the SwiftLint step. The later steps in that job (Build XCFramework, xcodegen generate, the simulator build) never ran while SwiftLint was failing, so this PR is the first time they get exercised on this code — if one of them is also broken, it will surface here rather than on main.

Once iOS app build is green, it can be added to the required checks alongside Rust (host + iOS targets).

`iOS app build` has been red on main at the SwiftLint step. All three
violations are whitespace, none of them affect behaviour:

- RootView.swift ended with three newlines instead of one, tripping both
  trailing_newline and vertical_whitespace on line 302.
- ChatView.swift had a double blank line before `canSend` (line 47).

Verified with CI's exact command, `swiftlint lint --strict`: 0 violations
in 97 files, down from "3 violations, 3 serious".
Copilot AI review requested due to automatic review settings August 3, 2026 14:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Ready to approve

Changes are limited to whitespace-only edits that resolve SwiftLint violations with no functional impact.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR fixes SwiftLint CI failures on main by removing extra blank lines that triggered whitespace-related lint violations, without changing any runtime behavior.

Changes:

  • Remove extra trailing blank lines at the end of RootView.swift.
  • Remove an extra blank line in ChatView.swift before canSend.
File summaries
File Description
app/Sources/Views/RootView.swift Removes extra trailing blank lines to satisfy trailing_newline / vertical_whitespace rules.
app/Sources/Views/ChatView.swift Removes a double-blank gap to satisfy vertical_whitespace rules.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@BunsDev
BunsDev merged commit a13b7a9 into main Aug 3, 2026
3 checks passed
@BunsDev
BunsDev deleted the fix/swiftlint-whitespace branch August 3, 2026 14:13
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.

2 participants