Safe auto-correction of Naming/BlockForwarding
and Style/ArgumentsForwarding
generates a syntax error (Ruby 3.2)
#12361
Labels
Hi, apologies if this is a duplicate
I've found an error when trying to correct
Naming/BlockForwarding
andStyle/ArgumentsForwarding
at the same timeExample file:
Example config:
Expected behavior
Generates a valid file
Actual behavior
Steps to reproduce the problem
Create a file containing like the one in the example
Run
bundle exec rubocop options_and_block.rb --only Style/ArgumentsForwarding,Naming/BlockForwarding -a
, targetingCheck the output file
RuboCop version
1.57.2 (and main)
The text was updated successfully, but these errors were encountered: