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
An error occurred while Style/KeywordParametersOrder cop was inspecting /home/zverok/playground/ruby/test_rbcp.rb:1:14.
undefined method `arguments' for nil:NilClass
/home/zverok/.rvm/gems/ruby-2.6.3/gems/rubocop-1.6.1/lib/rubocop/cop/style/keyword_parameters_order.rb:38:in `block in on_kwoptarg'
The text was updated successfully, but these errors were encountered:
Fixesrubocop#9234.
This PR fixes the error for `Style/KeywordParametersOrder` and
makes it aware of block keyword parameters.
Keyword parameters can be used with block arguments as well as method
arguments, but `Style/KeywordParametersOrder` cop were unaware of it.
This PR adds block arguments to the targets for consistency.
If the cop need an option to the above customize, I will open a separate PR.
Fixes#9234.
This PR fixes the error for `Style/KeywordParametersOrder` and
makes it aware of block keyword parameters.
Keyword parameters can be used with block arguments as well as method
arguments, but `Style/KeywordParametersOrder` cop were unaware of it.
This PR adds block arguments to the targets for consistency.
If the cop need an option to the above customize, I will open a separate PR.
Versions:
1.6.1 (using Parser 2.7.2.0, rubocop-ast 1.3.0, running on ruby 2.5.5 x86_64-linux)
Test code:
Glitch:
The text was updated successfully, but these errors were encountered: