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 Detail

      • 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,
                            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,
                            AnalysisWarningsWrapper 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