Package org.sonar.plugins.python.indexer
Class PythonIndexer
java.lang.Object
org.sonar.plugins.python.indexer.PythonIndexer
- Direct Known Subclasses:
SonarLintPythonIndexer,SonarQubePythonIndexer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidbuildOnce(org.sonar.api.batch.sensor.SensorContext context) abstract CacheContextbooleancanBeFullyScannedWithoutParsing(PythonInputFile inputFile) booleanvoidcollectPackageNames(List<PythonInputFile> inputFiles) org.sonar.api.batch.fs.InputFilegetFileWithId(String fileId) packageName(PythonInputFile inputFile) abstract voidpostAnalysis(org.sonar.api.batch.sensor.SensorContext context) voidsetSonarLintCache(SonarLintCache sonarLintCache)
-
Field Details
-
projectBaseDirAbsolutePath
-
-
Constructor Details
-
PythonIndexer
public PythonIndexer()
-
-
Method Details
-
projectLevelSymbolTable
-
packageName
-
collectPackageNames
-
buildOnce
public abstract void buildOnce(org.sonar.api.batch.sensor.SensorContext context) -
postAnalysis
public abstract void postAnalysis(org.sonar.api.batch.sensor.SensorContext context) -
setSonarLintCache
-
getFileWithId
-
canBePartiallyScannedWithoutParsing
- Parameters:
inputFile-- Returns:
- true if a file is partially skippable, false otherwise We consider a file to be partially skippable if it is unchanged, but may depend on impacted files. Regular Python rules will not run on such files. Security UCFGs and DBD IRs will be regenerated for them if they do depend on impacted files. In such case, these files will still need to be parsed when Security or DBD rules are enabled.
-
canBeFullyScannedWithoutParsing
- Parameters:
inputFile-- Returns:
- true if a file is fully skippable, false otherwise We consider a file to be fully skippable if it is unchanged and does NOT depend on any impacted file. Regular Python rules will not run on these files. Security UCFGs and DBD IRs will be retrieved from the cache. These files will not be parsed.
-
cacheContext
-