You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the rule idea, format
this issue's title as Rule Request: [Rule Name] and describe:
Why should this rule be added? Share links to existing discussion about what
the community thinks about this.
Implicit returns from closure can be hard to read.
Provide several examples of what would and wouldn't trigger violations.
Would
array.map { $0 }
Wouldn't
array.map { return $0 }
Should the rule be configurable, if so what parameters should be configurable?
No configuration required
Should the rule be opt-in or enabled by default? Why?
See README.md for guidelines on when to mark a rule as opt-in.
Yes, the rule should be opt in or alternatively expressed as a configuration to the existing implicit return rule.
The text was updated successfully, but these errors were encountered:
iliaskarim
changed the title
Forbid implicit return from closures
Rule request: Forbid implicit return from closures
Oct 25, 2019
New Issue Checklist
New rule request
Please describe the rule idea, format
this issue's title as
Rule Request: [Rule Name]
and describe:Why should this rule be added? Share links to existing discussion about what
the community thinks about this.
Implicit returns from closure can be hard to read.
Provide several examples of what would and wouldn't trigger violations.
Would
Wouldn't
Should the rule be configurable, if so what parameters should be configurable?
No configuration required
Should the rule be opt-in or enabled by default? Why?
See README.md for guidelines on when to mark a rule as opt-in.
Yes, the rule should be opt in or alternatively expressed as a configuration to the existing implicit return rule.
The text was updated successfully, but these errors were encountered: