Package org.sonar.plugins.python.indexer
Class SonarQubePythonIndexer
java.lang.Object
org.sonar.plugins.python.indexer.PythonIndexer
org.sonar.plugins.python.indexer.SonarQubePythonIndexer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDescribes if an optimized analysis of unchanged by skipping some rules is enabled.Fields inherited from class org.sonar.plugins.python.indexer.PythonIndexer
projectBaseDirAbsolutePath -
Constructor Summary
ConstructorsConstructorDescriptionSonarQubePythonIndexer(List<org.sonar.api.batch.fs.InputFile> inputFiles, CacheContext cacheContext, org.sonar.api.batch.sensor.SensorContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildOnce(org.sonar.api.batch.sensor.SensorContext context) booleancanBeFullyScannedWithoutParsing(org.sonar.api.batch.fs.InputFile inputFile) booleancanBePartiallyScannedWithoutParsing(org.sonar.api.batch.fs.InputFile inputFile) voidcomputeGlobalSymbols(List<org.sonar.api.batch.fs.InputFile> files, org.sonar.api.batch.sensor.SensorContext context) Methods inherited from class org.sonar.plugins.python.indexer.PythonIndexer
getFileWithId, packageName, projectLevelSymbolTable, setSonarLintCache
-
Field Details
-
SONAR_CAN_SKIP_UNCHANGED_FILES_KEY
Describes if an optimized analysis of unchanged by skipping some rules is enabled. By default, the property is not set (null), leaving SQ/SC to decide whether to enable this behavior. Setting it to true or false, forces the behavior from the analyzer independently of the server.- See Also:
-
-
Constructor Details
-
SonarQubePythonIndexer
public SonarQubePythonIndexer(List<org.sonar.api.batch.fs.InputFile> inputFiles, CacheContext cacheContext, org.sonar.api.batch.sensor.SensorContext context)
-
-
Method Details
-
buildOnce
public void buildOnce(org.sonar.api.batch.sensor.SensorContext context) - Specified by:
buildOncein classPythonIndexer
-
computeGlobalSymbols
public void computeGlobalSymbols(List<org.sonar.api.batch.fs.InputFile> files, org.sonar.api.batch.sensor.SensorContext context) -
canBePartiallyScannedWithoutParsing
public boolean canBePartiallyScannedWithoutParsing(org.sonar.api.batch.fs.InputFile inputFile) - Overrides:
canBePartiallyScannedWithoutParsingin classPythonIndexer
-
canBeFullyScannedWithoutParsing
public boolean canBeFullyScannedWithoutParsing(org.sonar.api.batch.fs.InputFile inputFile) - Overrides:
canBeFullyScannedWithoutParsingin classPythonIndexer
-
cacheContext
- Specified by:
cacheContextin classPythonIndexer
-