-
Notifications
You must be signed in to change notification settings - Fork 254
Description
I've just ran across a weird auto-correction and lint warning when I tried to provide iOS-only modifiers in a SwiftUI view. When running the lint command in Xcode, the warnings look like this:
And when running the corrections, swift-format corrects my code to this (which is ugly IMO):

I also couldn't find a configuration option to turn these warnings off, too. Both RemoveLine and Indentation are false positives in my opinion and I couldn't find either of these rules in the config file.
Also, disabling the Indentation didn't work, this still shows a violation:
.navigationBarTitle(L10n.Timer.EditSummaryScreen.title) // swift-format-ignore: IndentationBy the way, I'm not sure if just reporting issues with a normal title is the correct approach here. The GitHub organization doesn't seem to have an issue template yet (with things like "steps to reproduce", "expected state" etc.). It feels weird being the first reporting an issue without the [SR...] prefix after the migration from JIRA. 😅
This issue was reported during my regular Open Source live stream on Twitch. Follow me there to support my work!
