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

Cppcheck plugin shall display verbose information

    Details

    • Type: Improvement
    • Status: Closed
    • 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

            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: