From: Jeff J. <jef...@us...> - 2006-05-02 05:37:14
|
jeffjensen 06/05/01 22:37:11 Modified: findbugs/src/plugin-resources findbugs.jsl Log: Make error msg a link to the FB site for the violation (opens in new window). Add "priority" column. Patch from Robert Zimmermann #1465572 - thanks! Revision Changes Path 1.3 +11 -5 maven-plugins/findbugs/src/plugin-resources/findbugs.jsl Index: findbugs.jsl =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/findbugs/src/plugin-resources/findbugs.jsl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- findbugs.jsl 1 Nov 2005 16:32:38 -0000 1.2 +++ findbugs.jsl 2 May 2006 05:37:11 -0000 1.3 @@ -80,27 +80,33 @@ <tr> <th>Violation</th> <th>Line</th> + <th>Priority</th> </tr> <x:set var="errors" select="$file/BugInstance"/> <j:forEach var="error" items="${errors}"> <tr> <td> <j:set var="errorMessage" value="${error.attribute('message').getValue()}"/> - ${htmlescape.getText(errorMessage)} + <a alt="Bug Description" title="Bug Description" target="_blank" + href="http://findbugs.sourceforge.net/bugDescriptions.html#${error.attribute('type').getValue()}"> + ${htmlescape.getText(errorMessage)} + </a> </td> <td> <j:set var="line" value="${error.attribute('line').getValue()}"/> - <util:replace var="jxrName1" value="${name}" oldChar="." newChar="/"/> - <util:tokenize var="jxrName2" delim="\$">${jxrName1}</util:tokenize> + <util:replace var="jxrName1" value="${name}" oldChar="." newChar="/"/> + <util:tokenize var="jxrName2" delim="\$">${jxrName1}</util:tokenize> - <j:set var="loopOnceVar" value="TRUE"/> - <j:forEach var="jxrName3" items="${jxrName2}"> + <j:set var="loopOnceVar" value="TRUE"/> + <j:forEach var="jxrName3" items="${jxrName2}"> <j:if test="${loopOnceVar=='TRUE'}"> <a href="xref/${jxrName3}.html#${line}">${line}</a> <j:set var="loopOnceVar" value="FALSE"/> </j:if> </j:forEach> </td> + <td>${error.attribute('priority').getValue()} + </td> </tr> </j:forEach> </table> |