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

Add an API for Sensors to report files that can't be analyzed

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: Plugin API, Scanner
    • Labels:
      None

      Description

      In SonarLint context some files are sometimes not parseable. It should be properly reported so that SonarLint clients can take appropriate action (e.g. not loose water leak).

      API Proposal:

        sensorContext.newAnalysisError()
          .onFile(inputFile)
          .message(optionaMsg)
          .at(optionalLocation)
          .save();
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Due:
                Created:
                Updated:
                Resolved: