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
When using inline access modifiers (like private def respond_to_missing?(...)), the Style/MissingRespondToMissing is inappropriately returning a false positive, stating there is no respond_to_missing? method defined.
Both of these methods are initially defined as private:
When using inline access modifiers (like
private def respond_to_missing?(...)
), theStyle/MissingRespondToMissing
is inappropriately returning a false positive, stating there is norespond_to_missing?
method defined.Both of these methods are initially defined as private:
Expected behavior
The
Style/MissingRespondToMissing
should not report an issue ifrespond_to_missing?
is defined using an inlineprivate
modifier.Actual behavior
Rubocop validation fails.
Steps to reproduce the problem
Rubocop configuration:
Test file:
Result:
In contrast, no issue is reported with this file, using group-style access modifiers:
RuboCop version
The text was updated successfully, but these errors were encountered: