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
When closure_end_indentation is enabled and run autocorrect, function chain including multiline closure will be indented strange.
Before autocorrect
someThing.funcA().funcB().funcC{// do something}.funcD().funcE()
After autocorrect
someThing.funcA().funcB().funcC{// do something}.funcD()// <- This line should be indented with 4 spaces (aligned with above).funcE()// <- This line either
Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint autocorrect
Environment
SwiftLint version (run swiftlint version to be sure)?
0.36.0
Installation method used (Homebrew, CocoaPods, building from source, etc)?
CocoaPods
Are you using nested configurations?
If so, paste their relative paths and respective contents.
No
Which Xcode version are you using (check xcode-select -p)?
Version 11.2.1 (11B500)
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.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had any recent activity. Please comment to prevent this issue from being closed. Thank you for your contributions!
This issue has been automatically marked as stale because it has not had any recent activity. Please comment to prevent this issue from being closed. Thank you for your contributions!
New Issue Checklist
Describe the bug
When
closure_end_indentation
is enabled and run autocorrect, function chain including multiline closure will be indented strange.Before autocorrect
After autocorrect
Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)?0.36.0
CocoaPods
If so, paste their relative paths and respective contents.
No
xcode-select -p
)?Version 11.2.1 (11B500)
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
.The text was updated successfully, but these errors were encountered: