closure_parameter_position not triggering with lack of parameter in closure #3225
Closed
2 tasks done
Labels
bug
Unexpected and reproducible misbehavior.
New Issue Checklist
What I expected from this rule was that regardless of whether there was a parameter or not (although I understand it does go against the name of the rule in a sense), it would still trigger. Instead, I would expect the rule to really apply to the
in
syntax altogether. For instance, this currently triggers:However, this does not
This appears kind of odd, when you have multiple closures for a function with some with parameters and some without, such as below. The middle
onFailure
closure will trigger, but theonSuccess
andonReset
do not.Will update this if I figure out a good custom rule or change that achieves this result.
The text was updated successfully, but these errors were encountered: