def print_tag_limit_warnings(options)
if @tag_occurrences
first_tag = true
options[:tag_names].each do |tag_name, limit|
unless Ast::Tags.exclude_tag?(tag_name)
tag_frequency = @tag_occurrences[tag_name].size
if limit && tag_frequency > limit
@io.puts if first_tag
first_tag = false
@io.puts format_string("#{tag_name} occurred #{tag_frequency} times, but the limit was set to #{limit}", :failed)
@tag_occurrences[tag_name].each {|location| @io.puts format_string(" #{location}", :failed)}
@io.flush
end
end
end
end
end