<%- @tables.each do |table| -%> <%- if table[:content].any? || table[:resolved].any? -%> <%- max_num_violations = FindMaxNumViolations.new(table[:content]).call -%> <%- table[:content].take(max_num_violations).each do |violation| -%> <%- end -%> <%- if table[:content].length > max_num_violations -%> <%- end -%> <%- table[:resolved].each do |message| -%> <%- end -%>
<%- if table[:count] > 0 -%> <%= pluralize(table[:name], table[:count]) %> <%- else -%> :white_check_mark: <%= random_compliment %> <%- end -%>
:<%= table[:emoji] %>: <%= violation.message %>
:warning: Danger found <%= table[:content].length %> violations with this PR. Due to GitHub's max issue comment size, the number shown has been truncated to <%= max_num_violations %>.
:white_check_mark: <%= message %>
<%- end -%> <%- end -%> <%- @markdowns.each do |current| -%> <%= current %> <%# the previous line has to be aligned far to the left, otherwise markdown can break easily %> <%- end -%>

Generated by :no_entry_sign: Danger