Package org.sonar.plugins.python
Class Scanner
java.lang.Object
org.sonar.plugins.python.Scanner
- Direct Known Subclasses:
PythonScanner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.sonar.api.batch.sensor.SensorContext -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScanner(org.sonar.api.batch.sensor.SensorContext context) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeScannedWithoutParsing(PythonInputFile inputFile) protected voidvoidexecute(List<PythonInputFile> files, org.sonar.api.batch.sensor.SensorContext context) protected Stream<PythonInputFile>getFilesStream(List<PythonInputFile> files) protected abstract intgetNumberOfThreads(org.sonar.api.batch.sensor.SensorContext context) protected abstract voidlogStart(int numThreads) protected abstract Stringname()protected abstract voidprocessException(Exception e, PythonInputFile file) protected voidprocessFiles(List<PythonInputFile> files, org.sonar.api.batch.sensor.SensorContext context, MultiFileProgressReport progressReport, AtomicInteger numScannedWithoutParsing) protected voidreportStatistics(int numSkippedFiles, int numTotalFiles) protected abstract voidscanFile(PythonInputFile file) protected boolean
-
Field Details
-
context
protected final org.sonar.api.batch.sensor.SensorContext context
-
-
Constructor Details
-
Scanner
protected Scanner(org.sonar.api.batch.sensor.SensorContext context)
-
-
Method Details
-
execute
-
processFiles
protected void processFiles(List<PythonInputFile> files, org.sonar.api.batch.sensor.SensorContext context, MultiFileProgressReport progressReport, AtomicInteger numScannedWithoutParsing) -
logStart
protected abstract void logStart(int numThreads) -
getFilesStream
-
name
-
scanFile
- Throws:
IOException
-
scanFileWithoutParsing
- Throws:
IOException
-
endOfAnalysis
protected void endOfAnalysis() -
processException
-
reportStatistics
protected void reportStatistics(int numSkippedFiles, int numTotalFiles) -
canBeScannedWithoutParsing
-
getNumberOfThreads
protected abstract int getNumberOfThreads(org.sonar.api.batch.sensor.SensorContext context)
-