[
https://issues.jenkins-ci.org/browse/JENKINS-13589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexandr Penzai updated JENKINS-13589:
--------------------------------------
Description:
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.
was:
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
- nbErrors = this.getReport().getWarningSeverityList().size();
+ nbErrors = nbErrors + this.getReport().getWarningSeverityList().size();
and for previous errors
https://github.com/jenkinsci/cppcheck-plugin/blob/master/src/main/java/org/jenkinsci/plugins/cppcheck/CppcheckResult.java#L213
- nbPreviousError = previousResult.getReport().getWarningSeverityList().size();
+ nbPreviousError = nbPreviousError +
previousResult.getReport().getWarningSeverityList().size();
Please correct.
> 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