Package org.sonar.plugins.python
Class PythonScanner
java.lang.Object
org.sonar.plugins.python.Scanner
org.sonar.plugins.python.PythonScanner
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPythonScanner(org.sonar.api.batch.sensor.SensorContext context, PythonChecks checks, org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, PythonParser parser, PythonIndexer indexer) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeScannedWithoutParsing(PythonInputFile inputFile) voidprotected Stringname()protected voidprocessException(Exception e, PythonInputFile file) protected voidreportStatistics(int numSkippedFiles, int numTotalFiles) protected voidscanFile(PythonInputFile inputFile) booleanscanFileWithoutParsing(PythonInputFile inputFile)
-
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, PythonParser parser, PythonIndexer indexer)
-
-
Method Details
-
name
-
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
-