Skip to content

Commit

Permalink
Merge pull request #42 from EdgedesignCZ/phpmd-parsing-errors
Browse files Browse the repository at this point in the history
Show parsing errors in phpmd report
  • Loading branch information
zdenekdrahos authored Dec 21, 2016
2 parents f753472 + c2d3506 commit 055369b
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/report/phpmd.xsl
Original file line number Diff line number Diff line change
@@ -51,6 +51,9 @@
<li role="presentation">
<a href="#errors" aria-controls="errors" role="tab" data-toggle="tab">Errors</a>
</li>
<li role="presentation">
<a href="#parsing" aria-controls="parsing" role="tab" data-toggle="tab">Parsing Errors</a>
</li>
</ul>
</nav>

@@ -186,6 +189,23 @@
</xsl:for-each>
</table>
</div>

<div role="tabpanel" class="tab-pane" id="parsing">
<table class="table table-striped">
<thead>
<tr>
<th>File</th>
<th>Error</th>
</tr>
</thead>
<xsl:for-each select="/pmd/error">
<tr>
<td><strong data-file=""><xsl:value-of select="@filename" /></strong></td>
<td><xsl:value-of select="@msg" /></td>
</tr>
</xsl:for-each>
</table>
</div>
</div>
</div>

1 change: 1 addition & 0 deletions app/report/phpqa.html.twig
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ set tabs = {
'phpmd': {
'overview': 'Overview',
'errors': 'Errors',
'parsing': 'Parsing Errors',
},
'phpcpd': {
'overview': 'Overview',

0 comments on commit 055369b

Please sign in to comment.