-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
Closures are generally intended for small code snippets.
A sniff could be written to check that a closure is limited to # lines / code line (excluding inline docs) / statements and throw an error suggesting using a named function instead.
The number of lines and whether it should look for lines / code lines / statements could be made configurable.