Class PythonSensor

java.lang.Object
org.sonar.plugins.python.PythonSensor
All Implemented Interfaces:
org.sonar.api.batch.sensor.Sensor, org.sonar.api.scanner.sensor.ProjectSensor

public final class PythonSensor extends Object implements org.sonar.api.batch.sensor.Sensor
  • Constructor Details

    • PythonSensor

      public PythonSensor(org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, AnalysisWarningsWrapper analysisWarnings, ArchitectureCallbackWrapper architectureCallbackWrapper)
      Constructor to be used by pico if neither PythonCustomRuleRepository nor PythonIndexer are to be found and injected.
    • PythonSensor

      public PythonSensor(org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, @Nullable PythonCustomRuleRepository[] customRuleRepositories, AnalysisWarningsWrapper analysisWarnings, ArchitectureCallbackWrapper architectureCallbackWrapper)
    • PythonSensor

      public PythonSensor(org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, PythonIndexer indexer, SonarLintCache sonarLintCache, AnalysisWarningsWrapper analysisWarnings, ArchitectureCallbackWrapper architectureCallbackWrapper)
    • PythonSensor

      public PythonSensor(org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, @Nullable PythonCustomRuleRepository[] customRuleRepositories, @Nullable PythonIndexer indexer, @Nullable SonarLintCache sonarLintCache, AnalysisWarningsWrapper analysisWarnings, RepositoryInfoProvider[] editionMetadataProviders, ArchitectureCallbackWrapper architectureUDGBuilderWrapper)
  • 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