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

Resolve files with relative paths

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The Compiler Warnings plugin has an option that can be checked to resolve relative paths. It warns that it can be an expensive operation.

      Currently, if a relative path in the cppcheck XML file is in the workspace, but the location specified is relative to a sub-directory of the workspace, its ability to be displayed is disabled. There should be an option similar to the compiler warnings plugin to resolve the files within the context of the workspace.

        Attachments

          Activity

          Hide
          mixalturek Michal Turek added a comment -

          Hi Eric,

          this is one line in shell/sed.

          sed -i 's%file="%file="SUBDIRECTORY/%' cppcheck.xml
          

          It does the following.

          <location file="src/file.cpp" line="42"/>
          <location file="SUBDIRECTORY/src/file.cpp" line="42"/>
          

          Is it enough for you?
          Michal

          Show
          mixalturek Michal Turek added a comment - Hi Eric, this is one line in shell/sed. sed -i 's%file="%file="SUBDIRECTORY/%' cppcheck.xml It does the following. <location file="src/file.cpp" line="42"/> <location file="SUBDIRECTORY/src/file.cpp" line="42"/> Is it enough for you? Michal
          Hide
          mixalturek Michal Turek added a comment -

          No response for a long time, rejecting the issue. "Report in a sub-directory of the workspace (advanced)" section added to wiki, there are two possible workarounds.

          Show
          mixalturek Michal Turek added a comment - No response for a long time, rejecting the issue. "Report in a sub-directory of the workspace (advanced)" section added to wiki, there are two possible workarounds.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: