-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
enhancementIdeas for improvements of existing features and rules.Ideas for improvements of existing features and rules.good first issueIssue to be taken up by new contributors yet unfamiliar with the project.Issue to be taken up by new contributors yet unfamiliar with the project.
Description
New Issue Checklist
- I've Updated SwiftLint to the latest version.
- I've searched for existing GitHub issues.
Feature or Enhancement Proposal
When we wrap regex literals as a function, its return type will be error by large_tuple rule.
It would be happier that some option to ignore Regex<(Substring, {multiple groups})> on large_tuple rule.
example:
func matchFooBar(in string: String) -> Regex<(Substring, foo: Substring, Substring?, bar: Substring?)>.Match? { // <- 🚫 Tuples should have at most 2 members (large_tuple)
try! #/content header; foo="(?<foo>.*?)"(; bar="(?<bar>.*?)")?/#
.firstMatch(in: string)
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementIdeas for improvements of existing features and rules.Ideas for improvements of existing features and rules.good first issueIssue to be taken up by new contributors yet unfamiliar with the project.Issue to be taken up by new contributors yet unfamiliar with the project.