Swiftlint: Rule request: large tuples

Created on 25 Dec 2016  路  5Comments  路  Source: realm/SwiftLint

Tuples should have at most 3(?) members.

rule-request

Most helpful comment

In my opinion at least 4

All 5 comments

In my opinion at least 4

Could do warning at 3, error at 4. Configurable for sure.

Could also make exceptions for tuples defined and only used within the scope of a single function, where making a struct might not be worth it.

Probably we should focus on validating function return types first and properties.

Sure this should be an opt in type of rule..

Updated swiftlint, project build fails...

@mcfedr You can always disable a rule if you don't think it applies to your project or in this case tune in the limits.

Was this page helpful?
0 / 5 - 0 ratings