📋 文件匹配分析报告

文件名:{{ file_name }} | 生成时间:{{ generation_time }}

📄
文件大小
{{ file_size_formatted }}
🎯
总匹配数
{{ match_count }}
⏱️
处理时间
{{ processing_time }}秒
📊
匹配规则数
{{ unique_rules_count }}
📈

规则统计

{% for rule in rule_stats %}
{{ rule.analysis_type|upper }}
{{ rule.rule_name }}
匹配次数:{{ rule.count }}
{% if rule.description %}
💡 {{ rule.description }}
{% endif %}
{% endfor %}
🔍

详细匹配列表

{% for match in matches %}
匹配 #{{ loop.index }} {% if match.context_lines %} {% endif %}
规则名称 {{ match.rule_name }}
规则描述 {{ match.rule_description or '无' }}
匹配类型 {{ match.match_type }} ({{ match.analysis_type }})
行号 {{ match.line_number }}
匹配内容 {{ match.match_text }}
上下文
{% for ctx_line in match.context_lines_limited %}
{{ ctx_line }}
{% endfor %} {% if match.has_more_context %}
... 共 {{ match.context_total_lines }} 行 ...
{% endif %}
{% endfor %}