{% if error %}
{% else %}{{ q.sql_pretty }}
{% if q.violations %}
{{ v.rule_id }}
{{ v.issue }}
{% if v.fix is mapping %}
Fix ({{ v.fix.action }}):
{% if v.fix.action == 'REPLACE' %}
replace span [{{ v.fix.span[0] }}, {{ v.fix.span[1] }}) with {{ v.fix.text }}
{% elif v.fix.action == 'ADD' %}
insert {{ v.fix.text }} at offset {{ v.fix.at }}
{% elif v.fix.action == 'REMOVE' %}
remove span [{{ v.fix.span[0] }}, {{ v.fix.span[1] }})
{% else %}
{{ v.fix.text or v.fix }}
{% endif %}
Fix: {{ v.fix }}
{% endif %}{{ q.json_str }}