New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

large_tuple incorrectly identifies type annotation as tuple #1234

Closed
ArtisOracle opened this Issue Jan 23, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@ArtisOracle

ArtisOracle commented Jan 23, 2017

The rule large_tuple indicates the type annotation for a multi-parameter closure is a malformed tuple.

open class NetworkSessionHandler: NSObject, URLSessionDataDelegate {
    ...
    var completionHandler: ((_ data: Data?, _ resp: URLResponse?, _ e: NSError?) -> Void)!

The type of the variable completionHandler is not a tuple but instead a function that accepts 3 arguments and returns Void or ().

@marcelofabri marcelofabri added the bug label Jan 23, 2017

@marcelofabri

This comment has been minimized.

Collaborator

marcelofabri commented Jan 23, 2017

This shouldn't trigger. I was able to reproduce it with 0.16.1. Thanks for letting us know!

marcelofabri added a commit to marcelofabri/SwiftLint that referenced this issue Jan 23, 2017

marcelofabri added a commit to marcelofabri/SwiftLint that referenced this issue Jan 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment