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

Import issues from external rule engines from generic report

    Details

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

      Description

      The scanner should have an internal sensor that uses the Java API created by SONAR-10543 to load issues created by external rule engines from a file.
      This file should be formatted as JSON, and should support all fields that are supported by the Java API.

      See the existing sensor that imports generic test data.

      top-level: 
      * issues - array of Issue objects
        
      Issue fields:
      * engineId - string
      * ruleId - string
      * primaryLocation - Location object 
      * type - string. One of BUG, VULNERABILITY, CODE_SMELL
      * severity - string. One of BLOCKER, CRITICAL, MAJOR, MINOR, INFO
      * effortMinutes - integer, optional. Defaults to 0
      * secondaryLocations - array of Location objects, optional
      
      Location fields:
      * message - string
      * filePath - string
      * textRange - TextRange object, optional for secondary locations only
      
      TextRange fields:
      * startLine - integer. 1-indexed
      * endLine - integer, optional. 1-indexed
      * startColumn - integer, optional. 0-indexed
      * endColumn - integer, optional. 0-indexed
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                duarte.meneses Duarte Meneses
                Reporter:
                duarte.meneses Duarte Meneses
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: