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 String
Describes 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 TypeMethodDescriptionvoid
buildOnce
(org.sonar.api.batch.sensor.SensorContext context) boolean
canBeFullyScannedWithoutParsing
(org.sonar.api.batch.fs.InputFile inputFile) boolean
canBePartiallyScannedWithoutParsing
(org.sonar.api.batch.fs.InputFile inputFile) void
computeGlobalSymbols
(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:
buildOnce
in 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:
canBePartiallyScannedWithoutParsing
in classPythonIndexer
-
canBeFullyScannedWithoutParsing
public boolean canBeFullyScannedWithoutParsing(org.sonar.api.batch.fs.InputFile inputFile) - Overrides:
canBeFullyScannedWithoutParsing
in classPythonIndexer
-
cacheContext
- Specified by:
cacheContext
in classPythonIndexer
-