Style/RedundantSelf
doesn't consider pattern matching variables
#10106
Labels
Style/RedundantSelf
doesn't consider pattern matching variables
#10106
Style/RedundantSelf
doesn't consider pattern matching variables. It treats the following code as offense, while removingself
would change the behavior:Also I want to notice that this code will be automatically corrected by RuboCop, which is a serious issue.
Expected behavior
Actual behavior
Steps to reproduce the problem
Install Ruby 3.0.2 and RuboCop 1.12.0.
Create file
.rubocop.yml
with the following content:Create file
main.rb
with the following content:RuboCop version
The text was updated successfully, but these errors were encountered: