1 | <!DOCTYPE html |
---|
2 | PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
---|
3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
4 | <html xmlns="http://www.w3.org/1999/xhtml" |
---|
5 | xmlns:py="http://genshi.edgewall.org/" |
---|
6 | py:strip=""> |
---|
7 | <body py:strip=""> |
---|
8 | |
---|
9 | <h3>Code Lint</h3> |
---|
10 | <table class="listing lint"> |
---|
11 | <thead> |
---|
12 | <tr><th rowspan="2" class="file">File</th><th colspan="4" class="category">Problem Category Totals</th><th rowspan="2" class="total">Total</th></tr> |
---|
13 | <tr> |
---|
14 | <th class="category">Convention</th> |
---|
15 | <th class="category">Refactor</th> |
---|
16 | <th class="category">Warning</th> |
---|
17 | <th class="category">Error</th> |
---|
18 | </tr> |
---|
19 | </thead> |
---|
20 | |
---|
21 | <tbody><py:for each="item in data.data"> |
---|
22 | <tr class="file ${item.details and 'failed' or 'success'}"> |
---|
23 | <th> |
---|
24 | <span class="reportitem" /> |
---|
25 | <a py:if="item.href" href="${item.href}">$item.file</a> |
---|
26 | <span py:if="not item.href">$item.file</span> |
---|
27 | <p class="details" style="padding: 0" py:for="line, type, msg in item.details"> |
---|
28 | <span>$line: [$type] $msg</span> |
---|
29 | </p> |
---|
30 | </th> |
---|
31 | |
---|
32 | <td class="category">$item.category.convention</td> |
---|
33 | <td class="category">$item.category.refactor</td> |
---|
34 | <td class="category">$item.category.warning</td> |
---|
35 | <td class="category">$item.category.error</td> |
---|
36 | <td class="category">$item.lines</td> |
---|
37 | |
---|
38 | </tr> |
---|
39 | </py:for> |
---|
40 | </tbody> |
---|
41 | <tbody class="totals" py:with="totals = data.totals"><tr> |
---|
42 | <th>Total (in $totals.files files)</th> |
---|
43 | |
---|
44 | <td class="category total">$totals.category.convention</td> |
---|
45 | <td class="category total">$totals.category.refactor</td> |
---|
46 | <td class="category total">$totals.category.warning</td> |
---|
47 | <td class="category total">$totals.category.error</td> |
---|
48 | <td class="total">$totals.lines</td> |
---|
49 | </tr></tbody> |
---|
50 | </table> |
---|
51 | |
---|
52 | </body> |
---|
53 | </html> |
---|