Location | Code | Rule | Message |
---|---|---|---|
{% set file = "/".join(r_ph["artifactLocation"]["uri"].split("/")[3:]) %}
{% set start_line = r_ph["region"]["startLine"] %}
{% set end_line = r_ph["region"]["endLine"] %}
{% set start = r_ph["region"]["startColumn"] %}
{% set end = r_ph["region"]["endColumn"] %}
{% set location = branch %}
{% if commit | length > 0 %}
{% set location = commit %}
{% endif %}
{{ file }}
Lines: {{start_line}}.{{start}} to {{end_line}}.{{end}}
|
{% set code = r_ph["region"]["snippet"]["text"] %}
{% if start_line == end_line %}
{% set code = f_highlight(code, start-1, end-1) %}
{% endif %}
{{ code }}
|
{{ r["ruleId"] }}
|
{{ r["message"]["text"][:20] }} (Click to expand).{{ r["message"]["text"] }} |