Package org.sonar.plugins.python
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 Summary
Fields Modifier and Type Field Description protected org.sonar.api.config.Configurationconf
-
Constructor Summary
Constructors Constructor Description PythonReportSensor(org.sonar.api.config.Configuration conf, AnalysisWarningsWrapper analysisWarnings, String reportType)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringdefaultReportPath()voiddescribe(org.sonar.api.batch.sensor.SensorDescriptor descriptor)voidexecute(org.sonar.api.batch.sensor.SensorContext context)static List<File>getReports(org.sonar.api.config.Configuration conf, String baseDirPath, String reportPathPropertyKey, String reportPath, AnalysisWarningsWrapper analysisWarnings)protected voidprocessReports(org.sonar.api.batch.sensor.SensorContext context, List<File> reports)protected abstract StringreportPathKey()
-
-
-
Constructor Detail
-
PythonReportSensor
public PythonReportSensor(org.sonar.api.config.Configuration conf, AnalysisWarningsWrapper analysisWarnings, String reportType)
-
-
Method Detail
-
describe
public void describe(org.sonar.api.batch.sensor.SensorDescriptor descriptor)
- Specified by:
describein interfaceorg.sonar.api.scanner.sensor.ProjectSensor- Specified by:
describein interfaceorg.sonar.api.batch.sensor.Sensor
-
execute
public void execute(org.sonar.api.batch.sensor.SensorContext context)
- Specified by:
executein interfaceorg.sonar.api.scanner.sensor.ProjectSensor- Specified by:
executein interfaceorg.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()
-
-