You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
indentation_width is not working well with multiple line if and guard #4961
Are you using nested configurations?
If so, paste their relative paths and respective contents.
Which Xcode version are you using (check xcodebuild -version)?
Do you have a sample that shows the issue? Run echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use swiftlint lint --path [file here] --no-cache --enable-all-rules.
// This triggers a violation:
guardletstartSubvalue=subvalue(at:gesture.startLocation,minutes:minutes),letcurrentSubvalue=subvalue(at:gesture.location,minutes:minutes)else{returnnil}
Activity
shmilyQin commentedon Jul 7, 2023
Facing the same issue. could you tell me whether you fix it? Thanks.
SimplyDanny commentedon Jul 8, 2023
I suppose this is not straightforward to fix. I'm not going to invest energy into this in the near future. But everyone is free to propose a PR. 😉
Fix `indentation_width` false positives for multi-line conditions
Fix `indentation_width` false positives for multi-line conditions
tanaev commentedon Mar 24, 2026
Please take a look
Fix `indentation_width` false positives for multi-line conditions
Fix `indentation_width` false positives for multi-line conditions
Fix `indentation_width` false positives for multi-line conditions