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
Is your feature request related to a problem? Please describe.
A block capture is not really another argument, and having the parameter list be too long vs not based on switching between yield and explicit block feels inconsistent.
Describe the solution you'd like
Metrics/ParameterLists should not count explicit block argument.
Describe alternatives you've considered
Could offer it as an option instead of changing the behaviour.
The text was updated successfully, but these errors were encountered:
koic
added a commit
to koic/rubocop
that referenced
this issue
Oct 14, 2021
…rameterLists`
Fixesrubocop#10186.
Explicit block arg `&block` is not counted by default to prevent
erroneous change that is avoided by making block arg implicit.
Is your feature request related to a problem? Please describe.
A block capture is not really another argument, and having the parameter list be too long vs not based on switching between yield and explicit block feels inconsistent.
Describe the solution you'd like
Metrics/ParameterLists
should not count explicit block argument.Describe alternatives you've considered
Could offer it as an option instead of changing the behaviour.
The text was updated successfully, but these errors were encountered: