class RuboCop::Cop::Lint::MissingCopEnableDirective

def on_new_investigation

rubocop:disable Metrics/AbcSize
def on_new_investigation
  max_range = cop_config['MaximumRangeSize']
  processed_source.disabled_line_ranges.each do |cop, line_ranges|
    line_ranges.each do |line_range|
      # This has to remain a strict inequality to handle
      # the case when max_range is Float::INFINITY
      next if line_range.max - line_range.min < max_range + 2
      range = source_range(processed_source.buffer,
                           line_range.min,
                           (0..0))
      add_offense(range, message: message(max_range: max_range, cop: cop))
    end
  end
end