Package org.sonar.plugins.python.indexer
Class SonarQubePythonIndexer
- java.lang.Object
-
- org.sonar.plugins.python.indexer.PythonIndexer
-
- org.sonar.plugins.python.indexer.SonarQubePythonIndexer
-
public class SonarQubePythonIndexer extends PythonIndexer
-
-
Field Summary
Fields Modifier and Type Field Description static StringSONAR_CAN_SKIP_UNCHANGED_FILES_KEYDescribes 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
Constructors Constructor Description SonarQubePythonIndexer(List<org.sonar.api.batch.fs.InputFile> inputFiles, CacheContext cacheContext, org.sonar.api.batch.sensor.SensorContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildOnce(org.sonar.api.batch.sensor.SensorContext context)CacheContextcacheContext()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
-
-
-
-
Field Detail
-
SONAR_CAN_SKIP_UNCHANGED_FILES_KEY
public static final String 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:
- Constant Field Values
-
-
Constructor Detail
-
SonarQubePythonIndexer
public SonarQubePythonIndexer(List<org.sonar.api.batch.fs.InputFile> inputFiles, CacheContext cacheContext, org.sonar.api.batch.sensor.SensorContext context)
-
-
Method Detail
-
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
public CacheContext cacheContext()
- Specified by:
cacheContextin classPythonIndexer
-
-