{# OVERALL REPORT HEADER START #} {% block main_header scoped %}
{% block main_header_name scoped %}MythX Report for {{ target }}{% endblock %}
{% endblock %} {# OVERALL REPORT HEADER END #} {% for filename, report_data in report_context.items() %} {# ISSUE REPORT HEADER START #} {% block report_header scoped %}

{% block report_header_name scoped %} Report for {{ filename }} {% endblock %}

{% endblock %} {# ISSUE REPORT HEADER END #} {# REPORT SECTION START #} {% if report_data|rejectattr('issues')|join('')|length %}
{% block section_report scoped %} {% for line_content in report_data %} {% for issue in line_content["issues"] %} {% endfor %} {% endfor %}
{% block section_report_id scoped %}ID{% endblock %} {% block section_report_name scoped %}Name{% endblock %} {% block section_report_location scoped %}Line{% endblock %}
{{ issue["swcID"] }} {{ issue["severity"]|title }} {{ issue["swcTitle"] }} {{ line_content["line"] }}
{% endblock %}
{# REPORT SECTION END #} {# CODE SECTION START #}
{% block section_code_name scoped %}View issues in source code{% endblock %}
{% for line_content in report_data %}
{{ line_content['content'] }}
{% for issue in line_content['issues'] %}

{{ issue['swcID'] }} - {{ issue['swcTitle'] }}

{% for case in issue['testCases'] %}
{% set case_idx=loop.index %} {% block section_case_name scoped %}Test Case {{ case_idx }}{% endblock %} {% for step in case["steps"] %} {% set step_idx=loop.index %}
{% block section_code_step_name scoped %}Step {{ step_idx }}{% endblock %} {% for key, value in step.items() %} {% endfor %}
{{ key }} {{ value }}
{% endfor %}
{% endfor %}
{% endfor %} {% endfor %}
{# CODE SECTION END #} {% else %}
No issues have been found.
{% endif %} {% endfor %}