Class ExternalIssuesSensor

java.lang.Object
org.sonar.plugins.python.ExternalIssuesSensor
All Implemented Interfaces:
org.sonar.api.batch.sensor.Sensor, org.sonar.api.scanner.sensor.ProjectSensor
Direct Known Subclasses:
BanditSensor, Flake8Sensor, MypySensor, PylintSensor, RuffSensor

public abstract class ExternalIssuesSensor extends Object implements org.sonar.api.batch.sensor.Sensor
  • Field Details

  • Constructor Details

    • ExternalIssuesSensor

      public ExternalIssuesSensor()
  • Method Details

    • describe

      public void describe(org.sonar.api.batch.sensor.SensorDescriptor descriptor)
      Specified by:
      describe in interface org.sonar.api.scanner.sensor.ProjectSensor
      Specified by:
      describe in interface org.sonar.api.batch.sensor.Sensor
    • 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
    • saveIssue

      protected void saveIssue(org.sonar.api.batch.sensor.SensorContext context, TextReportReader.Issue issue, Set<String> unresolvedInputFiles, String linterKey)
    • importReport

      protected abstract void importReport(File reportPath, org.sonar.api.batch.sensor.SensorContext context, Set<String> unresolvedInputFiles) throws IOException, org.sonarsource.analyzer.commons.internal.json.simple.parser.ParseException
      Throws:
      IOException
      org.sonarsource.analyzer.commons.internal.json.simple.parser.ParseException
    • shouldExecute

      protected abstract boolean shouldExecute(org.sonar.api.config.Configuration conf)
    • linterName

      protected abstract String linterName()
    • reportPathKey

      protected abstract String reportPathKey()
    • logger

      protected abstract org.slf4j.Logger logger()