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

Cppcheck plugin shall display verbose information

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • cppcheck-plugin
    • None
    • 1.16

      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>
      

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

              Created:
              Updated:
              Resolved: