Class ExternalIssuesSensor

  • All Implemented Interfaces:
    org.sonar.api.batch.sensor.Sensor, org.sonar.api.scanner.sensor.ProjectSensor
    Direct Known Subclasses:
    BanditSensor, Flake8Sensor, PylintSensor

    public abstract class ExternalIssuesSensor
    extends Object
    implements org.sonar.api.batch.sensor.Sensor
    • Constructor Detail

      • ExternalIssuesSensor

        public ExternalIssuesSensor()
    • Method Detail

      • 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
      • 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.sonar.api.utils.log.Logger logger()