Package org.sonar.plugins.python
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
-
Constructor Summary
ConstructorsConstructorDescriptionPythonSensor
(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
-
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 interfaceorg.sonar.api.scanner.sensor.ProjectSensor
- Specified by:
describe
in interfaceorg.sonar.api.batch.sensor.Sensor
-
execute
public void execute(org.sonar.api.batch.sensor.SensorContext context) - Specified by:
execute
in interfaceorg.sonar.api.scanner.sensor.ProjectSensor
- Specified by:
execute
in interfaceorg.sonar.api.batch.sensor.Sensor
-