Class 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, org.sonar.api.notifications.AnalysisWarnings analysisWarnings)
      Constructor to be used by pico if neither PythonCustomRuleRepository nor PythonIndexer are to be found and injected.
      PythonSensor​(org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, PythonCustomRuleRepository[] customRuleRepositories, org.sonar.api.notifications.AnalysisWarnings analysisWarnings)  
      PythonSensor​(org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, PythonCustomRuleRepository[] customRuleRepositories, PythonIndexer indexer, org.sonar.api.notifications.AnalysisWarnings analysisWarnings)  
      PythonSensor​(org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, PythonIndexer indexer)  
    • Constructor Detail

      • PythonSensor

        public PythonSensor​(org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory,
                            org.sonar.api.batch.rule.CheckFactory checkFactory,
                            org.sonar.api.issue.NoSonarFilter noSonarFilter,
                            org.sonar.api.notifications.AnalysisWarnings 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,
                            PythonIndexer indexer)
      • PythonSensor

        public PythonSensor​(org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory,
                            org.sonar.api.batch.rule.CheckFactory checkFactory,
                            org.sonar.api.issue.NoSonarFilter noSonarFilter,
                            PythonCustomRuleRepository[] customRuleRepositories,
                            org.sonar.api.notifications.AnalysisWarnings 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
                            org.sonar.api.notifications.AnalysisWarnings analysisWarnings)
    • 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