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

[parasoft-findings] Extract inline script block in com/parasoft/findings/jenkins/coverage/api/metrics/steps/CoverageViewModel/index.jelly

XMLWordPrintable

      Problem

      == Inline Script Block
      Line: 90
      ----
      <script>
          const viewProxy =<st:bind value="${it}"/>;
          const coverageChartGenerator = new CoverageChartGenerator(jQuery3);
          viewProxy.getJenkinsColorIDs(function (colors) {
              const jenkinsColors = getJenkinsColors(colors.responseObject());
              const colorJson = JSON.stringify(Object.fromEntries(jenkinsColors));
              viewProxy.setJenkinsColors(colorJson, function(t) {});
              coverageChartGenerator.populateDetailsCharts(jenkinsColors, '${%setup.text}');
          });
        </script>
      ----
      

      Solution

      https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks

            Unassigned Unassigned
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: