[ 
https://issues.jenkins-ci.org/browse/JENKINS-13589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

gbois resolved JENKINS-13589.
-----------------------------

    Resolution: Fixed

Thank you so much to report it.
Fixed
                
> Erroneous calculation of threshold crossing
> -------------------------------------------
>
>                 Key: JENKINS-13589
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13589
>             Project: Jenkins
>          Issue Type: Bug
>          Components: cppcheck
>    Affects Versions: current
>            Reporter: Alexandr Penzai
>            Assignee: gbois
>            Priority: Minor
>
> There is a typo in
> https://github.com/jenkinsci/cppcheck-plugin/blob/master/src/main/java/org/jenkinsci/plugins/cppcheck/CppcheckResult.java#L211
> as result plugin incorrectly calculates total amount of errors
> {noformat}
> - nbErrors = this.getReport().getWarningSeverityList().size();
> + nbErrors = nbErrors + this.getReport().getWarningSeverityList().size();
> {noformat}
> and for previous errors
> https://github.com/jenkinsci/cppcheck-plugin/blob/master/src/main/java/org/jenkinsci/plugins/cppcheck/CppcheckResult.java#L213
> {noformat}
> - nbPreviousError = 
> previousResult.getReport().getWarningSeverityList().size();
> + nbPreviousError = nbPreviousError + 
> previousResult.getReport().getWarningSeverityList().size();
> {noformat}
> Please correct. 

--
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