class RuboCop::Cop::Rails::DynamicFindBy

def whitelisted?(node)

config option `WhiteList` will be deprecated soon
def whitelisted?(node)
  whitelist_config = cop_config['Whitelist']
  return unless whitelist_config
  whitelist_config.include?(node.method_name.to_s)
end