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 -
Constructor Summary
ConstructorsConstructorDescriptionPythonReportSensor
(org.sonar.api.config.Configuration conf, AnalysisWarningsWrapper analysisWarnings, String reportType) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
void
describe
(org.sonar.api.batch.sensor.SensorDescriptor descriptor) void
execute
(org.sonar.api.batch.sensor.SensorContext context) getReports
(org.sonar.api.config.Configuration conf, String baseDirPath, String reportPathPropertyKey, String reportPath, AnalysisWarningsWrapper analysisWarnings) protected void
processReports
(org.sonar.api.batch.sensor.SensorContext context, List<File> reports) protected abstract String
-
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 interfaceorg.sonar.api.scanner.sensor.ProjectSensor
- Specified by:
describe
in interfaceorg.sonar.api.batch.sensor.Sensor
-
execute
public void execute(org.sonar.api.batch.sensor.SensorContext context) - Specified by:
execute
in interfaceorg.sonar.api.scanner.sensor.ProjectSensor
- Specified by:
execute
in interfaceorg.sonar.api.batch.sensor.Sensor
-
getReports
-
processReports
protected void processReports(org.sonar.api.batch.sensor.SensorContext context, List<File> reports) throws XMLStreamException - Throws:
XMLStreamException
-
reportPathKey
-
defaultReportPath
-