Class AbstractBridgeSensor

java.lang.Object
org.sonar.plugins.javascript.bridge.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 Details

    • lang

      protected final String lang
    • bridgeServer

      protected final BridgeServer bridgeServer
    • exclusions

      protected List<String> exclusions
    • context

      protected org.sonar.api.batch.sensor.SensorContext context
    • contextUtils

      protected org.sonar.plugins.javascript.bridge.ContextUtils contextUtils
  • Constructor Details

  • Method Details

    • execute

      public void execute(org.sonar.api.batch.sensor.SensorContext context)
      Specified by:
      execute in interface org.sonar.api.scanner.sensor.ProjectSensor
      Specified by:
      execute in interface org.sonar.api.batch.sensor.Sensor
    • logErrorOrWarn

      protected void logErrorOrWarn(String msg, Throwable e)
    • analyzeFiles

      protected abstract void analyzeFiles(List<org.sonar.api.batch.fs.InputFile> inputFiles) throws IOException
      Throws:
      IOException
    • getInputFiles

      protected abstract List<org.sonar.api.batch.fs.InputFile> getInputFiles()
    • shouldAnalyzeWithProgram

      protected boolean shouldAnalyzeWithProgram(List<org.sonar.api.batch.fs.InputFile> inputFiles)