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
If a tuple is used in the argument of a closure, and there is no space between the tuple and "in", the code will be wrong when autocorrected.(See the 'Sample.swift' code below.)
Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint lint --path Sample.swift --no-cache --enable-all-rules --fix
Correcting Swift files at paths Sample.swift
Correcting 'Sample.swift' (1/1)
/Users/p-x9/Desktop/Sample.swift:2:21 Corrected Unneeded Parentheses in Closure Argument
Done inspecting 1 file for auto-correction!
Which Xcode version are you using (check xcodebuild -version): Xcode 12.5,Build version 12E262
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.
New Issue Checklist
Describe the bug
If a tuple is used in the argument of a closure, and there is no space between the tuple and "in", the code will be wrong when autocorrected.(See the 'Sample.swift' code below.)
Complete output when running SwiftLint, including the stack trace and command used
Environment
xcodebuild -version
): Xcode 12.5,Build version 12E262echo "[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
.Sample.swift
Sample.swift(autocorrected)
The text was updated successfully, but these errors were encountered: