@Beta public interface Sensor
A sensor is invoked once during the analysis of a project. The sensor can parse a flat file, connect to a web server... Sensors are used to add measure and issues at file level.
For example the Cobertura Sensor parses Cobertura report and saves the first-level of measures on files.
Modifier and Type | Method and Description |
---|---|
void |
describe(SensorDescriptor descriptor)
Populate
SensorDescriptor of this sensor. |
void |
execute(SensorContext context)
The actual sensor code.
|
void describe(SensorDescriptor descriptor)
SensorDescriptor
of this sensor.void execute(SensorContext context)
Copyright © 2009–2016 SonarSource. All rights reserved.