Skip to content
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: false positive on tuples with generics having 2 & more type parameters #1257

Closed
nekrich opened this issue Jan 27, 2017 · 2 comments
Labels

Comments

@nekrich
Copy link

nekrich commented Jan 27, 2017

I have a warning: Large Tuple Violation: Tuples should have at most 2 members. (large_tuple)
on this:
func getDictionaryAndInt() -> (Dictionary<Int, String>, Int)?

But there are only 2 members in the tuple.

swiftlint version: 0.16.1

@marcelofabri
Copy link
Collaborator

I could reproduce it on master. Thanks for reporting!

You can workaround the issue for now by using [Int: String] instead of Dictionary<Int, String>.

@nekrich
Copy link
Author

nekrich commented Jan 27, 2017

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants