Class AbstractBridgeSensor
java.lang.Object
org.sonar.plugins.javascript.analysis.AbstractBridgeSensor
- All Implemented Interfaces:
org.sonar.api.batch.sensor.Sensor
,org.sonar.api.scanner.sensor.ProjectSensor
- Direct Known Subclasses:
CssRuleSensor
,HtmlSensor
,JsTsSensor
,YamlSensor
public abstract class AbstractBridgeSensor
extends Object
implements org.sonar.api.batch.sensor.Sensor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BridgeServer
protected JsTsContext<?>
protected final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractBridgeSensor
(BridgeServer bridgeServer, String lang) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
analyzeFiles
(List<org.sonar.api.batch.fs.InputFile> inputFiles) Analyze the passed input files, and return the list of persisted issues.void
execute
(org.sonar.api.batch.sensor.SensorContext sensorContext) protected abstract List<org.sonar.api.batch.fs.InputFile>
protected void
logErrorOrWarn
(String msg, Throwable e) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.sonar.api.batch.sensor.Sensor
describe
-
Field Details
-
lang
-
bridgeServer
-
context
-
configuration
-
-
Constructor Details
-
AbstractBridgeSensor
-
-
Method Details
-
execute
public void execute(org.sonar.api.batch.sensor.SensorContext sensorContext) - Specified by:
execute
in interfaceorg.sonar.api.scanner.sensor.ProjectSensor
- Specified by:
execute
in interfaceorg.sonar.api.batch.sensor.Sensor
-
logErrorOrWarn
-
analyzeFiles
protected abstract void analyzeFiles(List<org.sonar.api.batch.fs.InputFile> inputFiles) throws IOException Analyze the passed input files, and return the list of persisted issues.- Throws:
IOException
-
getInputFiles
-