{% if current_instance %}
🌐 All Instances â€ē {{ current_instance }} {% if current_project %} â€ē {{ current_project }} {% endif %}
{% endif %}

Coverity Metrics Dashboard

Comprehensive Static Analysis Metrics {% if current_instance %} Instance: {{ current_instance }} {% endif %} {% if current_project %} - Project: {{ current_project }} {% else %} - All Projects {% endif %}
Generated: {{ timestamp }}
{% if current_instance %}
← Back to All Instances
{% endif %} {% if all_projects %}
{% if current_instance %} {% for project in all_projects|sort %} {% endfor %} {% else %} {% for project in all_projects|sort %} {% endfor %} {% endif %}
{% if current_project %}
Viewing: {{ current_project }}
{% endif %}
{% endif %} {% if current_instance and instance_info %}

âš™ī¸ Instance Information

{% if instance_info.coverity_version %}
Coverity Version
{{ instance_info.coverity_version }}
{% if instance_info.coverity_build %}
Build: {{ instance_info.coverity_build }}
{% endif %}
{% endif %} {% if instance_info.db_uptime_formatted %}
Database Uptime
{{ instance_info.db_uptime_formatted }}
{% if instance_info.db_start_time %}
Started: {{ instance_info.db_start_time.strftime('%Y-%m-%d %H:%M') if instance_info.db_start_time.strftime else instance_info.db_start_time }}
{% endif %}
{% endif %} {% if instance_info.first_snapshot %}
System Active Period
{{ instance_info.usage_period_days }} days
Since: {{ instance_info.first_snapshot.strftime('%Y-%m-%d') if instance_info.first_snapshot.strftime else instance_info.first_snapshot }}
{% endif %} {% if instance_info.last_activity_formatted %}
Last Activity
{{ instance_info.last_activity_formatted }}
{% if instance_info.last_snapshot %}
{{ instance_info.last_snapshot.strftime('%Y-%m-%d %H:%M') if instance_info.last_snapshot.strftime else instance_info.last_snapshot }}
{% endif %}
{% endif %} {% if instance_info.database_name %}
Database
{{ instance_info.database_name }}
{% if instance_info.active_connections %}
{{ instance_info.active_connections }} active connections
{% endif %}
{% endif %} {% if instance_info.system_unique_id %}
System ID
{{ instance_info.system_unique_id }}
{% endif %}
{% endif %}
{% if not current_project %} {% endif %}
Total Projects
{{ summary.total_projects }}
Active Streams
{{ summary.total_streams }}
Active Defects
{{ summary.total_defects }}
High Severity
{{ summary.high_severity_defects }}
Total Files
{{ summary.total_files }}
Lines of Code
{{ "{:,}".format(summary.total_loc) }}
Functions
{{ summary.total_functions }}
Active Users
{{ summary.total_users }}
{% if high_severity_alert %}
Alert! {{ summary.high_severity_defects }} high-severity defects require immediate attention.
{% endif %} {% if analysis_versions and analysis_versions|length > 0 %}

📊 Top Analysis Versions Used {% if current_project %} - Project: {{ current_project }} {% elif current_instance %} - Instance: {{ current_instance }} {% else %} - All Instances {% endif %}

{% for ver in analysis_versions %} {% endfor %}
# Analysis Version Snapshots First Used Last Used
{{ loop.index }} {{ ver.version }} {{ ver.snapshot_count }} {% if ver.first_used %} {{ ver.first_used.strftime('%Y-%m-%d %H:%M') if ver.first_used.strftime else ver.first_used }} {% else %} N/A {% endif %} {% if ver.last_used %} {{ ver.last_used.strftime('%Y-%m-%d %H:%M') if ver.last_used.strftime else ver.last_used }} {% else %} N/A {% endif %}
{% endif %}

Defects by Severity

{% for row in defects_by_severity %} {% endfor %}
Severity Count Percentage
{{ row.impact }} {{ row.defect_count }}
{{ (row.defect_count / summary.total_defects * 100)|round(1) }}%

Defects by Project

{% for row in defects_by_project %} {% endfor %}
Project Name Total Defects Active Fixed
{{ row.project_name }} {{ row.defect_count }} {{ row.active_defects }} {{ row.fixed_defects }}

Top Defect Categories

{% for row in defects_by_category[:10] %} {% endfor %}
Category Count
{{ row.category }} {{ row.defect_count }}

Defect Density (per KLOC)

{% for row in defect_density %} {% endfor %}
Stream Defects/KLOC Total LOC
{{ row.stream_name }} {{ row.defects_per_kloc }} {{ "{:,}".format(row.total_loc) }}

File Hotspots - Top Problem Files

{% if file_hotspots|length > 0 %}
Attention Required: These files have the highest defect concentrations.
{% for row in file_hotspots[:15] %} {% endfor %}
File Path Defect Count LOC Defects/KLOC
{{ row.file_path }} {{ row.defect_count }} {{ row.loc }} {{ row.defects_per_kloc }}
{% else %}
No significant file hotspots detected. Great job!
{% endif %}

Code Quality Metrics by Stream

{% for row in code_metrics %} {% endfor %}
Stream Files Total LOC Avg File LOC Comment Ratio
{{ row.stream_name }} {{ row.file_count }} {{ "{:,}".format(row.total_loc) }} {{ row.avg_file_loc|round(0)|int }} {{ row.comment_ratio_pct }}%
{% if complexity_distribution|length > 0 %}

Function Complexity Distribution

{% for row in complexity_distribution %} {% endfor %}
Complexity Range Function Count Average Complexity
{{ row.complexity_range }} {{ row.function_count }} {{ row.avg_complexity }}
{% endif %}

Top Defect Checkers

{% for row in top_checkers[:15] %} {% endfor %}
Checker Name Category Impact Count
{{ row.checker_name }} {{ row.category }} {{ row.impact }} {{ row.defect_count }}
{% if not current_project %}

Database Statistics

Database Size
{{ db_stats.db_size }}
Total Snapshots
{{ db_stats.total_snapshots }}
Avg Commit Time
{{ commit_stats.avg_duration_minutes }}m
Total Commits
{{ commit_stats.total_commits }}

Largest Database Tables

{% for row in largest_tables %} {% endfor %}
Table Name Size
{{ row.table_name }} {{ row.size }}

Analysis/Commit Performance

Min Commit Time
{{ commit_stats.min_duration_minutes }} min
Max Commit Time
{{ commit_stats.max_duration_minutes }} min
Avg Files/Commit
{{ commit_stats.avg_files_per_commit|int }}
Avg New Defects/Commit
{{ commit_stats.avg_new_defects_per_commit|int }}

Recent Snapshot Performance

{% for row in snapshot_performance %} {% endfor %}
Date ▲â–ŧ Stream ▲â–ŧ Total Defects ▲â–ŧ New/Eliminated ▲â–ŧ Files ▲â–ŧ Duration ▲â–ŧ Queue Time ▲â–ŧ
{{ row.date_created.strftime('%Y-%m-%d %H:%M') if row.date_created else 'N/A' }} {{ row.stream_name }} {{ row.total_defect_count or 0 }} +{{ row.new_defect_count or 0 }} -{{ row.eliminated_defect_count or 0 }} {{ row.total_file_count or 0 }} {{ row.duration_minutes or 0 }} min {{ row.queue_time_minutes or 0 }} min
{% if defect_discovery|length > 0 %}

Defect Discovery Rate ({{ trend_period_text }})

{% for row in defect_discovery[:30] %} {% endfor %}
Date Snapshots New Defects Eliminated Files Analyzed
{{ row.snapshot_date }} {{ row.snapshot_count }} {{ row.new_defects or 0 }} {{ row.eliminated_defects or 0 }} {{ row.files_analyzed or 0 }}
{% endif %}
{% endif %}