app/services/slack_api_wrapper.rb
Prefer detect
over find
. Open
Open
@slack_user ||= all_slack_users.find do |user_data|
- Read upRead up
- Exclude checks
This cop enforces the use of consistent method names from the Enumerable module.
Unfortunately we cannot actually know if a method is from Enumerable or not (static analysis limitation), so this cop can yield some false positives.
Prefer detect
over find
. Open
Open
@slack_user ||= all_slack_users.find do |user_data|
- Read upRead up
- Exclude checks
This cop enforces the use of consistent method names from the Enumerable module.
Unfortunately we cannot actually know if a method is from Enumerable or not (static analysis limitation), so this cop can yield some false positives.