class RuboCop::Cop::Lint::MissingCopEnableDirective

def acceptable_range?(cop, line_range)

def acceptable_range?(cop, line_range)
  # This has to remain a strict inequality to handle
  # the case when max_range is Float::INFINITY
  return true if line_range.max - line_range.min < max_range + 2
  # This cop is disabled in the config, it is not expected to be re-enabled
  return true if line_range.min == CommentConfig::CONFIG_DISABLED_LINE_RANGE_MIN
  cop_class = RuboCop::Cop::Registry.global.find_by_cop_name cop
  if cop_class &&
     !processed_source.registry.enabled?(cop_class, config) &&
     line_range.max == Float::INFINITY
    return true
  end
  false
end