Naming/RescuedExceptionsVariableName
does not handle variables with underscore
#6903
Labels
Naming/RescuedExceptionsVariableName
does not handle variables with underscore
#6903
After upgrading to Rubocop
v0.67.2
, if we use a variable name with a leading_
, the offense message ask to rename it without the underscore which flag a newLint/UselessAssignment
offense.Expected behavior
The cop should deal with underscored variable name and ask to rename it keeping the
_
.Actual behavior
Rubocop ask me to rename my variable
e
whereas it should be_e
.Steps to reproduce the problem
RuboCop version
The text was updated successfully, but these errors were encountered: