{{ value["label"] }}
{% for result in value['results'] %}
{{ result['file_name'] }}
{% for match in result['matches'] %}
{% if match is mapping and "lineNumber" in match %}
{% endfor %}
{% else %}{% endif %} {% if match is mapping and "statement" in match %} {% if match["statement"] is mapping and "line_contents" in match %} {{ htmlize(match["line_contents"]) }} {% else %} {{ htmlize(match["statement"]) }} {% endif %} {% elif match is mapping and "lineNumber" in match %} {{ htmlize(match["line_contents"]) }} {% else %} {{ match}} {% endif %} |
{% if value['count'] > 2 %}
{% set label_class = " label-important" %}
{% elif value['count'] > 0 %}
{% set label_class = " label-warning" %}
{% else %}
{% set label_class = " label-success" %}
{% endif %}
{{ value["label"] }}
{% for result in value['results'] %}
{{ result['file_name'] }}
{% for match in result['matches'] %}
{% if match is mapping and "lineNumber" in match %}
{% endfor %}
{% else %}{% endif %} {% if match is mapping and "statement" in match %} {% if match["statement"] is mapping and "line_contents" in match %} {{ htmlize(match["line_contents"]) }} {% else %} {{ htmlize(match["statement"]) }} {% endif %} {% elif match is mapping and "lineNumber" in match %} {{ htmlize(match["line_contents"]) }} {% else %} {{ match}} {% endif %} {% if match is mapping and "lineNumber" in match %} {% else %} {% endif %} |
{% if value['count'] > 10 %}
{% set label_class = " label-important" %}
{% elif value['count'] > 0 %}
{% set label_class = " label-warning" %}
{% else %}
{% set label_class = " label-success" %}
{% endif %}