{% 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 %} {% if current_project and owasp_metrics %} {% endif %} {% if current_project and cwe_top25_metrics %} {% 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 %}
{% if user_activity_stats %}

đŸ‘Ĩ User Activity & License Statistics ({{ trend_period_text }})

Licensed Users
{{ user_activity_stats.total_licensed_users }}
Total user licenses
Users with Login
{{ user_activity_stats.users_with_login }}
{{ user_activity_stats.login_user_percentage }}% of licenses
Active Users
{{ user_activity_stats.active_users }}
{{ user_activity_stats.active_user_percentage }}% of licenses
Inactive Licenses
{{ user_activity_stats.total_licensed_users - user_activity_stats.active_users }}
{{ (100 - user_activity_stats.active_user_percentage)|round(1) }}% of licenses
Activity Summary: {% if user_activity_stats.active_user_percentage >= 50 %} Good license utilization! {{ user_activity_stats.active_user_percentage }}% of users are actively using Coverity (commits or triage) in the last {{ trend_period_text.lower() }}. {% elif user_activity_stats.active_user_percentage >= 30 %} Moderate license utilization. {{ user_activity_stats.active_user_percentage }}% of users are actively using Coverity. Consider user engagement improvements. {% else %} Low license utilization detected. Only {{ user_activity_stats.active_user_percentage }}% of users are actively using Coverity. Review license allocation and user training. {% endif %}
📊 Definition of Activity:
  • Licensed Users: All user accounts in the system (not deleted)
  • Users with Login: Users who have logged in at least once (ever)
  • Active Users: Users who logged in OR performed triage actions within {{ trend_period_text.lower() }}
  • Inactive Licenses: Licensed users without recent activity
{% endif %}

Database Statistics

Database Size
{{ db_stats.db_size }}
Total Snapshots
{{ db_stats.total_snapshots }}
Avg Commit Time
{{ commit_stats.avg_duration_seconds }}s
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_seconds }} sec
Max Commit Time
{{ commit_stats.max_duration_seconds }} sec
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_seconds or 0 }} sec {{ row.queue_time_seconds or 0 }} sec
{% 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 %}
{% if top_projects_by_fix_rate or most_improved_projects or top_projects_by_triage or top_users_by_fixes or top_triagers or most_collaborative_users %}
{% if current_project %}

🏆 Individual Contributors

Recognizing top contributors in defect resolution, triage activity, and collaboration for this project.

{% else %}

🏆 Team Leaderboards

Recognizing top performers in defect resolution, triage activity, and continuous improvement.

{% endif %}
{% if not current_project %}

📊 Project Performance

{% if top_projects_by_fix_rate and top_projects_by_fix_rate|length > 0 %}

🚀 Fastest Fix Velocity

Projects with highest defect elimination rate (Last 30 Days)

{% for row in top_projects_by_fix_rate %} {% endfor %}
Rank Project Fixes Avg/Day
{% if loop.index == 1 %} 🏆 {% elif loop.index == 2 %} đŸĨˆ {% elif loop.index == 3 %} đŸĨ‰ {% else %} {{ loop.index }} {% endif %} {{ row.project_name }} {{ row.eliminated_defects }} {{ row.avg_fixes_per_day|round(2) }}
{% endif %} {% if most_improved_projects and most_improved_projects|length > 0 %}

📈 Most Improved

Projects with best improvement percentage (Last 90 Days)

{% for row in most_improved_projects %} {% endfor %}
Rank Project Improvement Net Change
{% if loop.index == 1 %} 🏆 {% elif loop.index == 2 %} đŸĨˆ {% elif loop.index == 3 %} đŸĨ‰ {% else %} {{ loop.index }} {% endif %} {{ row.project_name }} {{ row.improvement_percentage|round(1) }}% {{ row.net_change|int }}
{% endif %} {% if top_projects_by_triage and top_projects_by_triage|length > 0 %}

đŸŽ¯ Most Active Triagers

Projects with highest triage completion (Current State)

{% for row in top_projects_by_triage %} {% endfor %}
Rank Project Total Progress
{% if loop.index == 1 %} 🏆 {% elif loop.index == 2 %} đŸĨˆ {% elif loop.index == 3 %} đŸĨ‰ {% else %} {{ loop.index }} {% endif %} {{ row.project_name }} {{ row.triage_actions }}
{{ row.triage_percentage|round(1) }}%
{% endif %}
{% endif %} {% if not current_project %}

đŸ‘Ĩ Individual Contributors

{% endif %}
{% if top_users_by_fixes and top_users_by_fixes|length > 0 %}

🔧 Top Fixers

Users with most defect fixes submitted/released (Last 30 Days)

{% for row in top_users_by_fixes %} {% endfor %}
Rank User Fixes Avg/Day
{% if loop.index == 1 %} 🏆 {% elif loop.index == 2 %} đŸĨˆ {% elif loop.index == 3 %} đŸĨ‰ {% else %} {{ loop.index }} {% endif %}
{{ row.user_name }}
@{{ row.username }}
{{ row.total_fixes }} {{ row.avg_fixes_per_day|round(2) }}
{% endif %} {% if top_triagers and top_triagers|length > 0 %}

âš–ī¸ Top Triagers

Users with most classification and action assignments (Last 30 Days)

{% for row in top_triagers %} {% endfor %}
Rank User Actions Avg/Day
{% if loop.index == 1 %} 🏆 {% elif loop.index == 2 %} đŸĨˆ {% elif loop.index == 3 %} đŸĨ‰ {% else %} {{ loop.index }} {% endif %}
{{ row.user_name }}
@{{ row.username }}
{{ row.total_triage_actions }} {{ row.avg_triage_per_day|round(2) }}
{% endif %} {% if most_collaborative_users and most_collaborative_users|length > 0 %}

đŸ’Ŧ Team Champions

Users with most collaborative comments and discussions (Last 30 Days)

{% for row in most_collaborative_users %} {% endfor %}
Rank User Comments Avg/Day
{% if loop.index == 1 %} 🏆 {% elif loop.index == 2 %} đŸĨˆ {% elif loop.index == 3 %} đŸĨ‰ {% else %} {{ loop.index }} {% endif %}
{{ row.user_name }}
@{{ row.username }}
{{ row.total_comments }} {{ row.avg_comments_per_day|round(2) }}
{% endif %}
📊 Leaderboard Metrics Explained:
  • Fix Velocity: Defects with "Fix Submitted" or "Fix Released" action
  • Improvement: (Eliminated - New) / Starting Outstanding × 100%
  • Triage Completion: Percentage of defects with classification assigned
  • Collaboration: Comments added to defects for team communication
{% else %}
â„šī¸ No Leaderboard Data Available

Leaderboards will appear when projects have defect fix activity, improvements, or triage progress.

{% endif %}
{% if current_project and owasp_metrics %}

🔒 OWASP Top 10 2025 Security Analysis

Defects mapped to OWASP Top 10 2025 categories based on CWE (Common Weakness Enumeration) codes. This analysis helps prioritize security remediation efforts based on the most critical web application security risks.

đŸŽ¯ Security Focus: {{ owasp_metrics|length }} OWASP Top 10 categories detected in this project.
{% for item in owasp_metrics %} {% endfor %}
Rank OWASP Category Description Total 🔴 High 🟡 Med đŸŸĸ Low CWEs
#{{ loop.index }}
{{ item.category.split(':')[0] }}
{{ item.category.split(':')[1] if ':' in item.category else item.category }}
{{ item.description[:100] }}{% if item.description|length > 100 %}...{% endif %} {{ item.total_defects }} {% if item.high > 0 %} {{ item.high }} {% else %} - {% endif %} {% if item.medium > 0 %} {{ item.medium }} {% else %} - {% endif %} {% if item.low > 0 %} {{ item.low }} {% else %} - {% endif %} {{ item.cwe_count }}
Total OWASP-Mapped Defects
{{ owasp_metrics|sum(attribute='total_defects') }}
High Severity OWASP Issues
{{ owasp_metrics|sum(attribute='high') }}
📚 About OWASP Top 10 2025:

The OWASP Top 10 is a standard awareness document representing a broad consensus about the most critical security risks to web applications. This report maps your defects to these categories using CWE codes to help prioritize security remediation.

  • Rank: Position in OWASP Top 10 2025 list
  • Total: Number of outstanding defects in this category
  • CWEs: Number of unique CWE codes contributing to this category
{% endif %} {% if current_project and cwe_top25_metrics %}

đŸ›Ąī¸ CWE Top 25 Most Dangerous Software Weaknesses (2025)

Defects mapped to MITRE's CWE Top 25 list - the most widespread and critical software weaknesses. Rankings are based on real-world vulnerability data and help prioritize remediation by industry-recognized danger level.

đŸŽ¯ Security Focus: {{ cwe_top25_metrics|length }} CWE Top 25 weaknesses detected in this project.
{% for item in cwe_top25_metrics %} {% endfor %}
Rank CWE ID Weakness Name Score Total 🔴 High 🟡 Med đŸŸĸ Low âšĒ Unsp
#{{ item.rank }} CWE-{{ item.cwe_id }}
{{ item.name }}
{{ "%.2f"|format(item.score) }} {{ item.total_defects }} {% if item.high > 0 %} {{ item.high }} {% else %} - {% endif %} {% if item.medium > 0 %} {{ item.medium }} {% else %} - {% endif %} {% if item.low > 0 %} {{ item.low }} {% else %} - {% endif %} {% if item.unspecified > 0 %} {{ item.unspecified }} {% else %} - {% endif %}
Total CWE Top 25 Defects
{{ cwe_top25_metrics|sum(attribute='total_defects') }}
High Severity CWE Issues
{{ cwe_top25_metrics|sum(attribute='high') }}
📚 About CWE Top 25 2025:

The CWE Top 25 Most Dangerous Software Weaknesses is a demonstrative list of the most widespread and critical weaknesses that can lead to serious vulnerabilities in software. Compiled by MITRE using real-world vulnerability data from the National Vulnerability Database (NVD), this list helps developers and security teams prioritize their remediation efforts.

  • Rank: Position in MITRE's CWE Top 25 list (1-25, lower rank = more dangerous)
  • Score: MITRE's calculated danger score based on prevalence and impact
  • Total: Number of outstanding defects for this specific CWE in your project
  • Coverage: This table shows only CWE Top 25 entries found in your project ({{ cwe_top25_metrics|length }}/25)
{% endif %}