trailing_closure
rule disagrees with Swift 5.8 forward-scan matching
#5590
Labels
acceptable-false-positive
A false positive caused by a rule that is unavoidable due to missing type information
bug
New Issue Checklist
Describe the bug
With changes made between SwiftLint 0.54.0 and 0.55.1 the
trailing_closure
rule now enforces a practice that the Swift compiler considers as deprecated.Consider a function (or method) whose signature involves several trailing closures with default arguments, like:
Swift 5.8 introduced changes which lead to a warning being reported when calling the above function as follows:
When fixing the code to silence the Xcode warning:
SwiftLint 0.55.1 reports a warning. This was not the case with SwiftLint 0.54.0.
Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)? 0.55.1xcodebuild -version
)? 15.4 (15F31c)The text was updated successfully, but these errors were encountered: