Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23086

Cppcheck plugin shall display verbose information

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cppcheck-plugin
    • Labels:
      None
    • Environment:
      1.16
    • Similar Issues:

      Description

      The plugin doesn't work with verbose information present in the report file produced by cppcheck, it uses only msg attribute. It should be stored and displayed to the user too.

      <error
          id="arrayIndexThenCheck"
          severity="style"
          msg="Array index 'index' is used before limits check."
          verbose="Defensive programming: The variable 'index' is used
              as an array index before it is check that is within limits.
              This can mean that the array might be accessed out of bounds.
              Reorder conditions such as '(a[i] &amp;&amp; i &lt; 10)' to
              '(i &lt; 10 &amp;&amp; a[i])'. That way the array will not
              be accessed if the index is out of limits.">
      </error>
      

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Michal Turek
          Path:
          src/main/java/com/thalesgroup/hudson/plugins/cppcheck/CppcheckSource.java
          src/main/java/com/thalesgroup/hudson/plugins/cppcheck/model/CppcheckFile.java
          src/main/java/org/jenkinsci/plugins/cppcheck/parser/CppcheckParser.java
          src/main/resources/org/jenkinsci/plugins/cppcheck/CppcheckSourceAll/index.jelly
          src/main/resources/org/jenkinsci/plugins/cppcheck/cppcheck-2.0.xsd
          http://jenkins-ci.org/commit/cppcheck-plugin/6fb2c2372d2ebfe495f8d350a1512a84a5057f15
          Log:
          JENKINS-23086 Cppcheck plugin shall display verbose information

          • Parsing and storing of the verbose attribute implemented.
          • If the value is the same as msg, it will be ignored.
          • Verbose information is displayed inside the tooltip on page with source code listing and on the page with all violations.
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michal Turek Path: src/main/java/com/thalesgroup/hudson/plugins/cppcheck/CppcheckSource.java src/main/java/com/thalesgroup/hudson/plugins/cppcheck/model/CppcheckFile.java src/main/java/org/jenkinsci/plugins/cppcheck/parser/CppcheckParser.java src/main/resources/org/jenkinsci/plugins/cppcheck/CppcheckSourceAll/index.jelly src/main/resources/org/jenkinsci/plugins/cppcheck/cppcheck-2.0.xsd http://jenkins-ci.org/commit/cppcheck-plugin/6fb2c2372d2ebfe495f8d350a1512a84a5057f15 Log: JENKINS-23086 Cppcheck plugin shall display verbose information Parsing and storing of the verbose attribute implemented. If the value is the same as msg, it will be ignored. Verbose information is displayed inside the tooltip on page with source code listing and on the page with all violations.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Michal Turek
          Path:
          src/main/java/com/thalesgroup/hudson/plugins/cppcheck/CppcheckSource.java
          http://jenkins-ci.org/commit/cppcheck-plugin/7edf2637196db960563b1bb087e3656be4a06932
          Log:
          JENKINS-23086 Cppcheck plugin shall display verbose information

          • "nodismiss" parameter removed by accident in the previous commit. If it is present, the tooltip won't be closed automatically after a timeout.
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michal Turek Path: src/main/java/com/thalesgroup/hudson/plugins/cppcheck/CppcheckSource.java http://jenkins-ci.org/commit/cppcheck-plugin/7edf2637196db960563b1bb087e3656be4a06932 Log: JENKINS-23086 Cppcheck plugin shall display verbose information "nodismiss" parameter removed by accident in the previous commit. If it is present, the tooltip won't be closed automatically after a timeout.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Michal Turek
          Path:
          src/main/java/com/thalesgroup/hudson/plugins/cppcheck/CppcheckSource.java
          src/main/java/com/thalesgroup/hudson/plugins/cppcheck/model/CppcheckFile.java
          src/main/java/org/jenkinsci/plugins/cppcheck/parser/CppcheckParser.java
          src/main/resources/org/jenkinsci/plugins/cppcheck/CppcheckSourceAll/index.jelly
          src/main/resources/org/jenkinsci/plugins/cppcheck/cppcheck-2.0.xsd
          http://jenkins-ci.org/commit/cppcheck-plugin/386c6383cb6c98b2e58e700552423ea320a93f90
          Log:
          Merge pull request #17 from mixalturek/master

          JENKINS-23086 Cppcheck plugin shall display verbose information

          Compare: https://github.com/jenkinsci/cppcheck-plugin/compare/0f3a26e1b34c...386c6383cb6c

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michal Turek Path: src/main/java/com/thalesgroup/hudson/plugins/cppcheck/CppcheckSource.java src/main/java/com/thalesgroup/hudson/plugins/cppcheck/model/CppcheckFile.java src/main/java/org/jenkinsci/plugins/cppcheck/parser/CppcheckParser.java src/main/resources/org/jenkinsci/plugins/cppcheck/CppcheckSourceAll/index.jelly src/main/resources/org/jenkinsci/plugins/cppcheck/cppcheck-2.0.xsd http://jenkins-ci.org/commit/cppcheck-plugin/386c6383cb6c98b2e58e700552423ea320a93f90 Log: Merge pull request #17 from mixalturek/master JENKINS-23086 Cppcheck plugin shall display verbose information Compare: https://github.com/jenkinsci/cppcheck-plugin/compare/0f3a26e1b34c...386c6383cb6c
          Hide
          mixalturek Michal Turek added a comment -

          Implemented, will be released in version 1.17.

          Show
          mixalturek Michal Turek added a comment - Implemented, will be released in version 1.17.

            People

            • Assignee:
              mixalturek Michal Turek
              Reporter:
              mixalturek Michal Turek
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: