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 TypeMethodDescriptionboolean
canBeScannedWithoutParsing
(org.sonar.api.batch.fs.InputFile inputFile) void
protected String
name()
protected void
processException
(Exception e, org.sonar.api.batch.fs.InputFile file) protected void
reportStatistics
(int numSkippedFiles, int numTotalFiles) protected void
scanFile
(org.sonar.api.batch.fs.InputFile inputFile) boolean
scanFileWithoutParsing
(org.sonar.api.batch.fs.InputFile 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
protected void scanFile(org.sonar.api.batch.fs.InputFile inputFile) -
scanFileWithoutParsing
public boolean scanFileWithoutParsing(org.sonar.api.batch.fs.InputFile inputFile) - Overrides:
scanFileWithoutParsing
in classScanner
-
endOfAnalysis
public void endOfAnalysis()- Overrides:
endOfAnalysis
in classScanner
-
processException
- Specified by:
processException
in classScanner
-
canBeScannedWithoutParsing
public boolean canBeScannedWithoutParsing(org.sonar.api.batch.fs.InputFile inputFile) - Overrides:
canBeScannedWithoutParsing
in classScanner
-
reportStatistics
protected void reportStatistics(int numSkippedFiles, int numTotalFiles) - Overrides:
reportStatistics
in classScanner
-