Package org.sonar.plugins.python
Class Scanner
- java.lang.Object
-
- org.sonar.plugins.python.Scanner
-
- Direct Known Subclasses:
PythonScanner
public abstract class Scanner extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.sonar.api.batch.sensor.SensorContextcontext
-
Constructor Summary
Constructors Modifier Constructor Description protectedScanner(org.sonar.api.batch.sensor.SensorContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancanBeScannedWithoutParsing(org.sonar.api.batch.fs.InputFile inputFile)protected voidendOfAnalysis()voidexecute(List<org.sonar.api.batch.fs.InputFile> files, org.sonar.api.batch.sensor.SensorContext context)protected abstract Stringname()protected abstract voidprocessException(Exception e, org.sonar.api.batch.fs.InputFile file)protected voidreportStatistics(int numSkippedFiles, int numTotalFiles)protected abstract voidscanFile(org.sonar.api.batch.fs.InputFile file)protected booleanscanFileWithoutParsing(org.sonar.api.batch.fs.InputFile file)
-
-
-
Method Detail
-
execute
public void execute(List<org.sonar.api.batch.fs.InputFile> files, org.sonar.api.batch.sensor.SensorContext context)
-
name
protected abstract String name()
-
scanFile
protected abstract void scanFile(org.sonar.api.batch.fs.InputFile file) throws IOException- Throws:
IOException
-
scanFileWithoutParsing
protected boolean scanFileWithoutParsing(org.sonar.api.batch.fs.InputFile file) throws IOException- Throws:
IOException
-
endOfAnalysis
protected void endOfAnalysis()
-
processException
protected abstract void processException(Exception e, org.sonar.api.batch.fs.InputFile file)
-
reportStatistics
protected void reportStatistics(int numSkippedFiles, int numTotalFiles)
-
canBeScannedWithoutParsing
public boolean canBeScannedWithoutParsing(org.sonar.api.batch.fs.InputFile inputFile)
-
-