[ 
https://issues.jenkins-ci.org/browse/JENKINS-12801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159294#comment-159294
 ] 

SCM/JIRA link daemon commented on JENKINS-12801:
------------------------------------------------

Code changed in jenkins
User: Ulli Hafner
Path:
 src/main/java/hudson/plugins/analysis/util/model/AbstractAnnotation.java
http://jenkins-ci.org/commit/analysis-core-plugin/5123f0efb7b7b2d9bb26c7970c4e2bd83791746a
Log:
  [JENKINS-12822] [JENKINS-12801] Added support for columns in 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

        

Reply via email to