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 Summary

    Constructors
    Constructor
    Description
    PythonSensor(org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, PythonCustomRuleRepository[] customRuleRepositories, PythonIndexer indexer, SonarLintCache sonarLintCache, AnalysisWarningsWrapper analysisWarnings)
     
    PythonSensor(org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, PythonCustomRuleRepository[] customRuleRepositories, AnalysisWarningsWrapper analysisWarnings)
     
    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)
     
    PythonSensor(org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, AnalysisWarningsWrapper analysisWarnings)
    Constructor to be used by pico if neither PythonCustomRuleRepository nor PythonIndexer are to be found and injected.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    describe(org.sonar.api.batch.sensor.SensorDescriptor descriptor)
     
    void
    execute(org.sonar.api.batch.sensor.SensorContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)
      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, PythonCustomRuleRepository[] customRuleRepositories, AnalysisWarningsWrapper analysisWarnings)
    • 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)
    • 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)
  • 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