Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-6979

Export precise issue location in JSON report

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3
    • Component/s: Scanner
    • Labels:
      None

      Description

      Here is an example of what should be the JSON output:

      {
          "component": "fab:one-class-project:src/main/java/foo/Simplest.java",
          "creationDate": "2015-11-18T11:53:26+0100",
          "endLine": 6,
          "endOffset": 18,
          "isNew": false,
          "key": "AVEaOlchl7-898uAGTPZ",
          "line": 6,
          "message": "Replace this usage of System.out or System.err by a logger.",
          "rule": "squid:S106",
          "severity": "MAJOR",
          "startLine": 6,
          "startOffset": 8,
          "status": "OPEN"
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.henry Julien Henry
              Reporter:
              julien.henry Julien Henry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: