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
Be clear, concise and precise in your description of the problem.
Open an issue with a descriptive title and a summary in grammatically correct,
complete sentences.
Use the template below when reporting bugs. Please, make sure that
you're running the latest stable RuboCop RSpec and that the problem you're reporting
hasn't been reported (and potentially fixed) already.
Before filing the ticket you should replace all text above the horizontal
rule with your own words.
In the case of false positive or false negative, please add the
corresponding cop name.
Expected behavior
When using RSpec with autocorrect I assumed it wouldn't break my codebase
Actual behavior
In cucumber-ruby-core it replaced be_match with match. However these weren't correct, because the codebase had defined match? as a method. So the correct behaviour here is to detect that the method match? has been defined, and then not suggest an autocorrect or error here.
Be clear, concise and precise in your description of the problem.
Open an issue with a descriptive title and a summary in grammatically correct,
complete sentences.
Use the template below when reporting bugs. Please, make sure that
you're running the latest stable RuboCop RSpec and that the problem you're reporting
hasn't been reported (and potentially fixed) already.
Before filing the ticket you should replace all text above the horizontal
rule with your own words.
In the case of false positive or false negative, please add the
corresponding cop name.
Expected behavior
When using RSpec with autocorrect I assumed it wouldn't break my codebase
Actual behavior
In
cucumber-ruby-core
it replacedbe_match
withmatch
. However these weren't correct, because the codebase had definedmatch?
as a method. So the correct behaviour here is to detect that the methodmatch?
has been defined, and then not suggest an autocorrect or error here.Steps to reproduce the problem
cucumber/cucumber-ruby-core@release/v13.0.3...main#diff-146e0d9fad5351a0fc7a77b7bb4e47a19b46a83e67e03c9330cd294077be02abL65)
RuboCop RSpec version
The text was updated successfully, but these errors were encountered: