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
ConstructorsModifierConstructorDescriptionprotected
Scanner
(org.sonar.api.batch.sensor.SensorContext context) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canBeScannedWithoutParsing
(org.sonar.api.batch.fs.InputFile inputFile) protected void
void
execute
(List<org.sonar.api.batch.fs.InputFile> files, org.sonar.api.batch.sensor.SensorContext context) protected abstract String
name()
protected abstract void
processException
(Exception e, org.sonar.api.batch.fs.InputFile file) protected void
reportStatistics
(int numSkippedFiles, int numTotalFiles) protected abstract void
scanFile
(org.sonar.api.batch.fs.InputFile file) protected boolean
scanFileWithoutParsing
(org.sonar.api.batch.fs.InputFile file)
-
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
public void execute(List<org.sonar.api.batch.fs.InputFile> files, org.sonar.api.batch.sensor.SensorContext context) -
name
-
scanFile
- Throws:
IOException
-
scanFileWithoutParsing
- Throws:
IOException
-
endOfAnalysis
protected void endOfAnalysis() -
processException
-
reportStatistics
protected void reportStatistics(int numSkippedFiles, int numTotalFiles) -
canBeScannedWithoutParsing
public boolean canBeScannedWithoutParsing(org.sonar.api.batch.fs.InputFile inputFile)
-