class RuboCop::CommentConfig

def analyze

def analyze
  analyses = Hash.new { |hash, key| hash[key] = CopAnalysis.new([], nil) }
  each_mentioned_cop do |cop_name, disabled, line, single_line|
    analyses[cop_name] =
      analyze_cop(analyses[cop_name], disabled, line, single_line)
  end
  analyses.each_with_object({}) do |element, hash|
    cop_name, analysis = *element
    hash[cop_name] = cop_line_ranges(analysis)
  end
end