Package org.sonar.plugins.python.mypy
Class MypySensor
- java.lang.Object
-
- org.sonar.plugins.python.ExternalIssuesSensor
-
- org.sonar.plugins.python.mypy.MypySensor
-
- All Implemented Interfaces:
org.sonar.api.batch.sensor.Sensor,org.sonar.api.scanner.sensor.ProjectSensor
public class MypySensor extends ExternalIssuesSensor
-
-
Field Summary
Fields Modifier and Type Field Description static StringLINTER_KEYstatic StringLINTER_NAMEstatic StringREPORT_PATH_KEY-
Fields inherited from class org.sonar.plugins.python.ExternalIssuesSensor
PYLINT_LEGACY_KEY
-
-
Constructor Summary
Constructors Constructor Description MypySensor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidimportReport(File reportPath, org.sonar.api.batch.sensor.SensorContext context, Set<String> unresolvedInputFiles)protected StringlinterName()protected org.slf4j.Loggerlogger()protected StringreportPathKey()protected booleanshouldExecute(org.sonar.api.config.Configuration conf)-
Methods inherited from class org.sonar.plugins.python.ExternalIssuesSensor
describe, execute, saveIssue
-
-
-
-
Field Detail
-
LINTER_NAME
public static final String LINTER_NAME
- See Also:
- Constant Field Values
-
LINTER_KEY
public static final String LINTER_KEY
- See Also:
- Constant Field Values
-
REPORT_PATH_KEY
public static final String REPORT_PATH_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
importReport
protected void importReport(File reportPath, org.sonar.api.batch.sensor.SensorContext context, Set<String> unresolvedInputFiles) throws IOException
- Specified by:
importReportin classExternalIssuesSensor- Throws:
IOException
-
shouldExecute
protected boolean shouldExecute(org.sonar.api.config.Configuration conf)
- Specified by:
shouldExecutein classExternalIssuesSensor
-
linterName
protected String linterName()
- Specified by:
linterNamein classExternalIssuesSensor
-
reportPathKey
protected String reportPathKey()
- Specified by:
reportPathKeyin classExternalIssuesSensor
-
logger
protected org.slf4j.Logger logger()
- Specified by:
loggerin classExternalIssuesSensor
-
-