[ https://issues.jenkins-ci.org/browse/JENKINS-12801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159295#comment-159295 ]
SCM/JIRA link daemon commented on JENKINS-12801: ------------------------------------------------ Code changed in jenkins User: Ulli Hafner Path: .classpath pom.xml src/main/java/hudson/plugins/pmd/parser/PmdParser.java src/main/java/hudson/plugins/pmd/parser/Violation.java src/test/java/hudson/plugins/pmd/parser/PmdParserTest.java src/test/resources/hudson/plugins/pmd/parser/issue12801.xml http://jenkins-ci.org/commit/pmd-plugin/c311e09311092846081b0b37c6b175266059f660 Log: [FIXED JENKINS-12801] Added column support for PMD warnings. > When there are 2 PMD warnings on 1 line the Jenkins report does only report 1 > ----------------------------------------------------------------------------- > > Key: JENKINS-12801 > URL: https://issues.jenkins-ci.org/browse/JENKINS-12801 > Project: Jenkins > Issue Type: Bug > Components: pmd > Reporter: Cees Bos > Assignee: Ulli Hafner > Priority: Minor > > We have this line of code: > {code:java} > public boolean hasNext() > { > return cursor == EMPTY && entity != EMPTY; > } > {code} > PMD xml report has these violations reported: > {code:xml} > <violation beginline="216" endline="216" begincolumn="32" endcolumn="46" > rule="CompareObjectsWithEquals" ruleset="Design Rules" > package="com.myapplication.util.collections" > class="SingleSet$SingleSetIterator" method="hasNext" > externalInfoUrl="http://pmd.sourceforge.net/rules/design.html#CompareObjectsWithEquals" > priority="3"> > Use equals() to compare object references. > </violation> > <violation beginline="216" endline="216" begincolumn="51" endcolumn="65" > rule="CompareObjectsWithEquals" ruleset="Design Rules" > package="com.myapplication.util.collections" > class="SingleSet$SingleSetIterator" method="hasNext" > externalInfoUrl="http://pmd.sourceforge.net/rules/design.html#CompareObjectsWithEquals" > priority="3"> > Use equals() to compare object references. > </violation> > {code} > Is reports 2 issues on the same line. Other begincolumn and other endcolumn. > In the UI it is only reported once. > And the total number of violations does not match with the actual number of > violations. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira