Class CloudformationSensor
- java.lang.Object
-
- org.sonar.iac.common.extension.IacSensor
-
- org.sonar.iac.cloudformation.plugin.CloudformationSensor
-
- All Implemented Interfaces:
org.sonar.api.batch.sensor.Sensor,org.sonar.api.scanner.sensor.ProjectSensor
public class CloudformationSensor extends IacSensor
-
-
Field Summary
-
Fields inherited from class org.sonar.iac.common.extension.IacSensor
fileLinesContextFactory, language, noSonarFilter
-
-
Constructor Summary
Constructors Constructor Description CloudformationSensor(org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, CloudformationLanguage language)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddescribe(org.sonar.api.batch.sensor.SensorDescriptor descriptor)protected StringgetActivationSettingKey()protected voidimportExternalReports(org.sonar.api.batch.sensor.SensorContext sensorContext)protected org.sonar.api.batch.fs.FilePredicatemainFilePredicate(org.sonar.api.batch.sensor.SensorContext sensorContext)protected StringrepositoryKey()protected ParseExceptiontoParseException(String action, org.sonar.api.batch.fs.InputFile inputFile, Exception cause)protected TreeParser<Tree>treeParser()protected List<TreeVisitor<InputFileContext>>visitors(org.sonar.api.batch.sensor.SensorContext sensorContext, DurationStatistics statistics)-
Methods inherited from class org.sonar.iac.common.extension.IacSensor
execute, isSonarLintContext
-
-
-
-
Constructor Detail
-
CloudformationSensor
public CloudformationSensor(org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, CloudformationLanguage language)
-
-
Method Detail
-
describe
public void describe(org.sonar.api.batch.sensor.SensorDescriptor descriptor)
-
treeParser
protected TreeParser<Tree> treeParser()
- Specified by:
treeParserin classIacSensor
-
repositoryKey
protected String repositoryKey()
- Specified by:
repositoryKeyin classIacSensor
-
visitors
protected List<TreeVisitor<InputFileContext>> visitors(org.sonar.api.batch.sensor.SensorContext sensorContext, DurationStatistics statistics)
-
mainFilePredicate
protected org.sonar.api.batch.fs.FilePredicate mainFilePredicate(org.sonar.api.batch.sensor.SensorContext sensorContext)
- Overrides:
mainFilePredicatein classIacSensor
-
importExternalReports
protected void importExternalReports(org.sonar.api.batch.sensor.SensorContext sensorContext)
- Overrides:
importExternalReportsin classIacSensor
-
getActivationSettingKey
protected String getActivationSettingKey()
- Specified by:
getActivationSettingKeyin classIacSensor
-
toParseException
protected ParseException toParseException(String action, org.sonar.api.batch.fs.InputFile inputFile, Exception cause)
- Overrides:
toParseExceptionin classIacSensor
-
-