Package org.sonar.plugins.python
Class PythonScanner
java.lang.Object
org.sonar.plugins.python.Scanner
org.sonar.plugins.python.PythonScanner
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPythonScanner(org.sonar.api.batch.sensor.SensorContext context, PythonChecks checks, org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, Supplier<PythonParser> parserSupplier, PythonIndexer indexer, PythonFileConsumer architectureCallback, NoSonarLineInfoCollector noSonarLineInfoCollector) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeScannedWithoutParsing(PythonInputFile inputFile) voidbooleanprotected intgetNumberOfThreads(org.sonar.api.batch.sensor.SensorContext context) intprotected voidlogStart(int numThreads) protected Stringname()protected voidprocessException(Exception e, PythonInputFile file) protected voidreportStatistics(int numSkippedFiles, int numTotalFiles) protected voidscanFile(PythonInputFile inputFile) booleanscanFileWithoutParsing(PythonInputFile inputFile) Methods inherited from class org.sonar.plugins.python.Scanner
execute, getFilesStream, processFiles
-
Field Details
-
THREADS_PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
PythonScanner
public PythonScanner(org.sonar.api.batch.sensor.SensorContext context, PythonChecks checks, org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, Supplier<PythonParser> parserSupplier, PythonIndexer indexer, PythonFileConsumer architectureCallback, NoSonarLineInfoCollector noSonarLineInfoCollector)
-
-
Method Details
-
name
-
logStart
protected void logStart(int numThreads) -
scanFile
- Specified by:
scanFilein classScanner- Throws:
IOException
-
scanFileWithoutParsing
- Overrides:
scanFileWithoutParsingin classScanner
-
endOfAnalysis
public void endOfAnalysis()- Overrides:
endOfAnalysisin classScanner
-
processException
- Specified by:
processExceptionin classScanner
-
canBeScannedWithoutParsing
- Overrides:
canBeScannedWithoutParsingin classScanner
-
reportStatistics
protected void reportStatistics(int numSkippedFiles, int numTotalFiles) - Overrides:
reportStatisticsin classScanner
-
getRecognitionErrorCount
public int getRecognitionErrorCount() -
getFoundDatabricks
public boolean getFoundDatabricks() -
getNumberOfThreads
protected int getNumberOfThreads(org.sonar.api.batch.sensor.SensorContext context) - Specified by:
getNumberOfThreadsin classScanner
-