class Pronto::Formatter::CheckstyleFormatter

def process_messages(messages)

def process_messages(messages)
  messages.group_by(&:path).map do |path, path_messages|
    REXML::Element.new('file', @checkstyle).tap do |file|
      file.attributes['name'] = path
      add_file_messages(path_messages, file)
    end
  end
end