Skip to content

refactor: apply linter to fix issues - #134

Merged
irstavr merged 2 commits into
mainfrom
fix/apply-linter
Jul 22, 2026
Merged

refactor: apply linter to fix issues#134
irstavr merged 2 commits into
mainfrom
fix/apply-linter

Conversation

@irstavr

@irstavr irstavr commented Jul 21, 2026

Copy link
Copy Markdown
Member

Noticed some linting issues and when run swiftformat --lint . there were tons of them reported.
So, applied swiftformat . on the source base to fix those.
After running it, swiftformat --lint . reports clean 🟢

To note: without a config, it uses SwiftFormat's defaults, so swiftformat . will reformat to those defaults — which is exactly what --lint was flagging, so the two agree, but with no extra rules that would make the code look 'prettier'.

We could add rules (on CI) and a .swiftformat file at the repo root with our chosen options — then both swiftformat and swiftformat --lint read it. Same way as we do already on the provider

@irstavr
irstavr requested a review from sighphyre July 21, 2026 15:16
@gastonfournier gastonfournier moved this from New to In Progress in Issues and PRs Jul 22, 2026

@sighphyre sighphyre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

OMG yes please!

@github-project-automation github-project-automation Bot moved this from In Progress to Approved PRs in Issues and PRs Jul 22, 2026
@sighphyre

Copy link
Copy Markdown
Member

We could add rules (on CI) and a .swiftformat file at the repo root with our chosen options — then both swiftformat and swiftformat --lint read it. Same way as we do already on the provider

+1 to both these ideas. Probably better as a separate PR

@irstavr
irstavr merged commit c9f0dcd into main Jul 22, 2026
6 checks passed
@irstavr
irstavr deleted the fix/apply-linter branch July 22, 2026 10:13
@github-project-automation github-project-automation Bot moved this from Approved PRs to Done in Issues and PRs Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants