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
Rubocop's presumption with PreferredMethods seems to be that the "undesired method" is equivalent to the more idiomatic "desired method", so we should use that one.
However, that's not accurate in the case of select and find_all. Consider, e.g., the following simple case:
@fj Limitation of static analysis... Both methods are actually the same in Enumerable, but some classes like Hash have a custom select and don't make find_all its alias.
Rubocop's presumption with
PreferredMethods
seems to be that the "undesired method" is equivalent to the more idiomatic "desired method", so we should use that one.However, that's not accurate in the case of
select
andfind_all
. Consider, e.g., the following simple case:The text was updated successfully, but these errors were encountered: