org.sonar.plugins.python
Class PythonReportSensor

java.lang.Object
  extended by 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)
           
 
Method Summary
 void analyse(org.sonar.api.resources.Project project, org.sonar.api.batch.SensorContext context)
           
protected  String defaultReportPath()
           
protected  List<File> getReports(org.sonar.api.config.Settings conf, String baseDirPath, String reportPathPropertyKey, String defaultReportPath)
           
protected  void handleNoReportsCase(org.sonar.api.batch.SensorContext context)
           
protected  void processReport(org.sonar.api.resources.Project project, org.sonar.api.batch.SensorContext context, File report)
           
protected  String reportPathKey()
           
 boolean shouldExecuteOnProject(org.sonar.api.resources.Project project)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

PythonReportSensor

public PythonReportSensor(org.sonar.api.config.Settings conf,
                          org.sonar.api.scan.filesystem.ModuleFileSystem fileSystem)
Method Detail

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.