• warnings-ng 4.0.0, analysis-model-api 3.0.0

      When IDEA inspections have been generated with the -d option, which is inspecting only a certain directory, the file paths in the resulting XML files are all absolute paths prefixed with "file://".

      When these files are used to publish a report with the warnings-ng-plugin, it cannot resolve these kinds of file paths. Therefore, it cannot link the file paths to the source code.

      As a workaround the XML files can be preprocessed with sed to "fix" the file paths:

      sed -i – "s/file:\/\///g" build/phpstorm/*.xml

      The better solution would be to strip the "file://" prefix when warnings-ng-plugin is reading the inspection files and executing the "Resolving absolute file names for all issues in workspace" step.

          [JENKINS-56235] Strip file:// from IDEA inspection file paths

          Christian Scheb created issue -
          Ulli Hafner made changes -
          Component/s New: analysis-model [ 23523 ]
          Component/s Original: warnings-ng-plugin [ 24526 ]
          Assignee Original: Ulli Hafner [ drulli ]
          Labels New: help-wanted newbie-friendly
          Lorenz Aebi made changes -
          Assignee New: Lorenz Aebi [ laebi ]
          Lorenz Aebi made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Lorenz Aebi made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Ulli Hafner made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          Lorenz Aebi made changes -
          Released As New: warnings-ng 4.0.0, analysis-model-api 3.0.0

            laebi Lorenz Aebi
            rg_scheb Christian Scheb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: