Lint/LiteralAsCondition
false positive with case
/in
expression
#10755
Labels
Lint/LiteralAsCondition
false positive with case
/in
expression
#10755
Since Ruby 2.7,
case
expressions also provide a more powerful experimental pattern matching feature via thein
keyword:Lint/LiteralAsCondition
offense is detected when using this new pattern matching feature.Expected behavior
No offenses detected for
Lint/LiteralAsCondition
cop.Actual behavior
Steps to reproduce the problem
RuboCop version
The text was updated successfully, but these errors were encountered: