Resolve swiftlint/swiftformat issues
Categories
(Data Platform and Tools :: Glean: SDK, defect, P1)
Tracking
(Not tracked)
People
(Reporter: janerik, Assigned: janerik)
Details
Attachments
(1 file)
The recent new release of swiftformat changes where to place braces.
Our swiftlint disagrees.
Versions:
swiftlint version
: 0.39.2swiftformat --version
: 0.45.1
Because we install them from homebrew it's hard to pin down the versions.
It's not the first time the tools disagree.
We should decide how to move forward.
-
One solution could be to only use one tool in CI.
Have the options for devs to usw swiftformat, but make it clear that they should not modify unrelated code. -
We could disable the brace rule in either of the tools (the brace rule is what currently breaks, disabling it in
swiftlint
is easy -
We could ignore it and wait for the tools to agree again (not good)
Assignee | ||
Comment 1•5 years ago
|
||
I don't feel like tackling that today, but for the sake of merging green PRs I think we should solve this on Monday, at a minimum by disabling the check completely.
:travis your feedback would be appreciated, then we can tackle that early Monday European morning.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
As I mentioned in our team channel, I would be happy if we remove/disable one of the tools, my preference being to disable swiftfmt. My reasoning behind this is that Xcode has decent default formatting guidelines and we get the most benefit from swiftlint because of this.
Assignee | ||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Description
•