org.sonar.plugins.python
Class PythonReportSensor
java.lang.Object
org.sonar.plugins.python.PythonReportSensor
- All Implemented Interfaces:
- org.sonar.api.batch.CheckProject, org.sonar.api.batch.Sensor, org.sonar.api.BatchComponent, org.sonar.api.BatchExtension, org.sonar.api.Extension
- Direct Known Subclasses:
- PythonCoverageSensor, PythonXunitSensor
public abstract class PythonReportSensor
- extends Object
- implements org.sonar.api.batch.Sensor
|
Field Summary |
protected org.sonar.api.config.Settings |
conf
|
protected org.sonar.api.scan.filesystem.ModuleFileSystem |
fileSystem
|
protected static org.slf4j.Logger |
LOG
|
| Fields inherited from interface org.sonar.api.batch.Sensor |
FLAG_SQUID_ANALYSIS |
|
Constructor Summary |
PythonReportSensor(org.sonar.api.config.Settings conf,
org.sonar.api.scan.filesystem.ModuleFileSystem fileSystem)
|
LOG
protected static final org.slf4j.Logger LOG
conf
protected org.sonar.api.config.Settings conf
fileSystem
protected org.sonar.api.scan.filesystem.ModuleFileSystem fileSystem
PythonReportSensor
public PythonReportSensor(org.sonar.api.config.Settings conf,
org.sonar.api.scan.filesystem.ModuleFileSystem fileSystem)
shouldExecuteOnProject
public boolean shouldExecuteOnProject(org.sonar.api.resources.Project project)
- Specified by:
shouldExecuteOnProject in interface org.sonar.api.batch.CheckProject
analyse
public void analyse(org.sonar.api.resources.Project project,
org.sonar.api.batch.SensorContext context)
- Specified by:
analyse in interface org.sonar.api.batch.Sensor
toString
public String toString()
- Overrides:
toString in class Object
getReports
protected List<File> getReports(org.sonar.api.config.Settings conf,
String baseDirPath,
String reportPathPropertyKey,
String defaultReportPath)
processReport
protected void processReport(org.sonar.api.resources.Project project,
org.sonar.api.batch.SensorContext context,
File report)
throws XMLStreamException
- Throws:
XMLStreamException
handleNoReportsCase
protected void handleNoReportsCase(org.sonar.api.batch.SensorContext context)
reportPathKey
protected String reportPathKey()
defaultReportPath
protected String defaultReportPath()
Copyright © 2011-2014 SonarSource and Waleri Enns. All Rights Reserved.