Class PythonReportSensor

java.lang.Object
org.sonar.plugins.python.PythonReportSensor
All Implemented Interfaces:
org.sonar.api.batch.sensor.Sensor, org.sonar.api.scanner.sensor.ProjectSensor
Direct Known Subclasses:
PythonXUnitSensor

public abstract class PythonReportSensor extends Object implements org.sonar.api.batch.sensor.Sensor
  • Field Details

    • conf

      protected final org.sonar.api.config.Configuration conf
  • Constructor Details

    • PythonReportSensor

      public PythonReportSensor(org.sonar.api.config.Configuration conf, AnalysisWarningsWrapper analysisWarnings, String reportType)
  • Method Details

    • describe

      public void describe(org.sonar.api.batch.sensor.SensorDescriptor descriptor)
      Specified by:
      describe in interface org.sonar.api.scanner.sensor.ProjectSensor
      Specified by:
      describe in interface org.sonar.api.batch.sensor.Sensor
    • execute

      public void execute(org.sonar.api.batch.sensor.SensorContext context)
      Specified by:
      execute in interface org.sonar.api.scanner.sensor.ProjectSensor
      Specified by:
      execute in interface org.sonar.api.batch.sensor.Sensor
    • getReports

      public static List<File> getReports(org.sonar.api.config.Configuration conf, String baseDirPath, String reportPathPropertyKey, String reportPath, AnalysisWarningsWrapper analysisWarnings)
    • processReports

      protected void processReports(org.sonar.api.batch.sensor.SensorContext context, List<File> reports) throws XMLStreamException
      Throws:
      XMLStreamException
    • reportPathKey

      protected abstract String reportPathKey()
    • defaultReportPath

      protected abstract String defaultReportPath()