Package org.sonar.plugins.python
Class ExternalIssuesSensor
- java.lang.Object
-
- org.sonar.plugins.python.ExternalIssuesSensor
-
- All Implemented Interfaces:
org.sonar.api.batch.sensor.Sensor,org.sonar.api.scanner.sensor.ProjectSensor
- Direct Known Subclasses:
BanditSensor,Flake8Sensor,PylintSensor
public abstract class ExternalIssuesSensor extends Object implements org.sonar.api.batch.sensor.Sensor
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringPYLINT_LEGACY_KEY
-
Constructor Summary
Constructors Constructor Description ExternalIssuesSensor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddescribe(org.sonar.api.batch.sensor.SensorDescriptor descriptor)voidexecute(org.sonar.api.batch.sensor.SensorContext context)protected abstract voidimportReport(File reportPath, org.sonar.api.batch.sensor.SensorContext context, Set<String> unresolvedInputFiles)protected abstract StringlinterName()protected abstract org.sonar.api.utils.log.Loggerlogger()protected abstract StringreportPathKey()protected voidsaveIssue(org.sonar.api.batch.sensor.SensorContext context, TextReportReader.Issue issue, Set<String> unresolvedInputFiles, String linterKey)protected abstract booleanshouldExecute(org.sonar.api.config.Configuration conf)
-
-
-
Field Detail
-
PYLINT_LEGACY_KEY
protected static final String PYLINT_LEGACY_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
describe
public void describe(org.sonar.api.batch.sensor.SensorDescriptor descriptor)
- Specified by:
describein interfaceorg.sonar.api.scanner.sensor.ProjectSensor- Specified by:
describein interfaceorg.sonar.api.batch.sensor.Sensor
-
execute
public void execute(org.sonar.api.batch.sensor.SensorContext context)
- Specified by:
executein interfaceorg.sonar.api.scanner.sensor.ProjectSensor- Specified by:
executein interfaceorg.sonar.api.batch.sensor.Sensor
-
saveIssue
protected void saveIssue(org.sonar.api.batch.sensor.SensorContext context, TextReportReader.Issue issue, Set<String> unresolvedInputFiles, String linterKey)
-
importReport
protected abstract void importReport(File reportPath, org.sonar.api.batch.sensor.SensorContext context, Set<String> unresolvedInputFiles) throws IOException, org.sonarsource.analyzer.commons.internal.json.simple.parser.ParseException
- Throws:
IOExceptionorg.sonarsource.analyzer.commons.internal.json.simple.parser.ParseException
-
shouldExecute
protected abstract boolean shouldExecute(org.sonar.api.config.Configuration conf)
-
linterName
protected abstract String linterName()
-
reportPathKey
protected abstract String reportPathKey()
-
logger
protected abstract org.sonar.api.utils.log.Logger logger()
-
-