{% block report_header_name scoped %} Report for {{ input.sources.keys()|join(", ") }} {% endblock %} {% block report_header_link scoped %} {% block report_header_link_name scoped %} ({{ report.uuid }}) {% endblock %} {% endblock %}
{% endblock %} {# ISSUE REPORT HEADER END #} {% if report %} {# STATUS SECTION START #}{% block section_status_high scoped %}High{% endblock %} | {% block section_status_medium scoped %}Medium{% endblock %} | {% block section_status_low scoped %}Low{% endblock %} | {% block section_status_unknown scoped %}Unknown{% endblock %} |
---|---|---|---|
{{ status.vulnerability_statistics.high }} | {{ status.vulnerability_statistics.medium }} | {{ status.vulnerability_statistics.low }} | {{ status.vulnerability_statistics.none }} |
{% block section_report_id scoped %}ID{% endblock %} | {% block section_report_severity scoped %}Severity{% endblock %} | {% block section_report_name scoped %}Name{% endblock %} | {% block section_report_file scoped %}File{% endblock %} | {% block section_report_location scoped %}Location{% endblock %} |
---|---|---|---|---|
{{ issue.swc_id }} | {{ issue.severity|title }} | {{ issue.swc_title }} | {% for loc in issue.locations %} {% if loc.source_format == "text" %} {{ loc.source_list[0] }} {% endif %} {% endfor %} | {% set x=line_dict.__setitem__(location.start_line, (issue.severity|lower, issue.extra_data["testCases"])) %}L: {{ location.start_line }} C: {{ location.start_column }} |
{% block section_code_name scoped %}Source Code{% endblock %}
{% for filename, data in input.sources.items() %}{{ filename }}
{% for line in data["source"].split("\n") %} {% if loop.index in line_dict %}{% endfor %}{% else %}{% if line_dict[loop.index][1] %} {% for case in line_dict[loop.index][1] %}
{{ line }}
{% set case_idx=loop.index %}{% endfor %} {% else %}{% block section_case_name scoped %}Test Case {{ case_idx }}{% endblock %}
{% for step in case["steps"] %} {% set step_idx=loop.index %}{% endfor %}{% block section_code_step_name scoped %}Step {{ step_idx }}{% endblock %}
{% for key, value in step.items() %}
{% endfor %} {{ key }} {{ value }} {% block section_code_empty_name scoped %}No test cases to display.{% endblock %}
{% endif %}{{ line }}
{% endif %} {% endfor %}
{% block no_issues_name scoped %}No issues were found.{% endblock %}
{% endif %} {% endfor %}