-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathproject_index.html
113 lines (104 loc) · 4.2 KB
/
project_index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Project report index</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap-5.3.0-alpha3.min.css"/>
<script src="js/jquery-3.6.4.slim.min.js"></script>
<script src="js/popper-2.11.7.min.js"></script>
<script src="js/bootstrap-5.3.0-alpha3.min.js"></script>
<link rel="stylesheet" href="css/pmd-tester.css">
</head>
<body>
<div class="section">
<h1>PMD Regression Tester Report</h1>
<p>
<a href="https://github.com/pmd/pmd-regression-tester">github.com/pmd/pmd-regression-tester</a>
</p>
</div>
<div class="section">
<h2>Branch details</h2>
<div class="section-content">
<div class="table-responsive">
<table id="table-summary" class="table">
<thead>
<tr>
<th></th>
<th>Base</th>
<th>Patch</th>
</tr>
</thead>
<tbody>
<tr>
<td class="item">Branch info</td>
<td><a href="{{base.tree_url}}">{{base.name}} {{ base.tip.sha | truncate: 8, "" }}</a>: {{ base.tip.message }}</td>
<td>
<a href="{{patch.tree_url}}">{{patch.name}} {{ patch.tip.sha | truncate: 8, "" }}</a>: {{ patch.tip.message }}
{% if patch.pr_number %}
<span class="external-link-secondary"><a href="https://github.com/pmd/pmd/pull/{{patch.pr_number}}">PR #{{patch.pr_number}}</a></span>
{% endif %}
<span class="external-link-secondary"><a href="{{ comparison_url }}">[Compare]</a></span>
</td>
</tr>
<tr>
<td class="item">Timestamp</td>
<td class="base">{{base.timestamp}}</td>
<td class="patch">{{patch.timestamp}}</td>
</tr>
<tr>
<td class="item">Total PMD runtime</td>
<td class="base">{{base.execution_time}}</td>
<td class="patch">{{patch.execution_time}}</td>
</tr>
<tr>
<td class="item">JDK</td>
<td class="base">{{base.jdk_info | escape }}</td>
<td class="patch">{{patch.jdk_info | escape }}</td>
</tr>
<tr>
<td class="item">Locale</td>
<td class="base">{{base.locale | escape }}</td>
<td class="patch">{{patch.locale | escape }}</td>
</tr>
<tr>
<td class="item">Configuration</td>
<td class="base"><a href="{{ base.config_url }}">Base config</a></td>
<td class="patch"><a href="{{ patch.config_url }}">Patch config</a></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="section-projects">
<h2>Projects</h2>
<div class="section-content">
<div class="table-responsive">
<table id="project-summary" class="table">
<thead>
<tr>
<th>Project</th>
<th>Tag</th>
<th>Violation diff</th>
<th>Error diff</th>
<th>ConfigError diff</th>
</tr>
</thead>
<tbody>
{% assign sorted_projects = projects | sort: 'name' %}
{% for project in sorted_projects %}
<tr>
<td class="project-header"><a href="{{ project.report_url }}">{{ project.name }}</a></td>
<td>{{ project.tag }}</td>
<td>{% include 'diff_pill_row' h: project.violation_counts %}</td>
<td>{% include 'diff_pill_row' h: project.error_counts %}</td>
<td>{% include 'diff_pill_row' h: project.configerror_counts %}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>