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.apache.commons.configuration.Configuration conf
           
protected  org.slf4j.Logger log
           
 
Fields inherited from interface org.sonar.api.batch.Sensor
FLAG_SQUID_ANALYSIS
 
Constructor Summary
PythonReportSensor(org.apache.commons.configuration.Configuration conf)
           
 
Method Summary
 void analyse(org.sonar.api.resources.Project project, org.sonar.api.batch.SensorContext context)
           
protected  String defaultReportPath()
           
protected  List<File> getReports(org.apache.commons.configuration.Configuration 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 org.slf4j.Logger log

conf

protected org.apache.commons.configuration.Configuration conf
Constructor Detail

PythonReportSensor

public PythonReportSensor(org.apache.commons.configuration.Configuration conf)
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.apache.commons.configuration.Configuration 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 javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

handleNoReportsCase

protected void handleNoReportsCase(org.sonar.api.batch.SensorContext context)

reportPathKey

protected String reportPathKey()

defaultReportPath

protected String defaultReportPath()


Copyright © 2011-2012 SonarSource and Waleri Enns. All Rights Reserved.