Class CloudformationSensor
- java.lang.Object
-
- org.sonar.iac.common.extension.IacSensor
-
- org.sonar.iac.common.yaml.YamlSensor
-
- 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 YamlSensor
-
-
Field Summary
-
Fields inherited from class org.sonar.iac.common.yaml.YamlSensor
checks, FILE_SEPERATOR, JSON_LANGUAGE_KEY, YAML_LANGUAGE_KEY
-
Fields inherited from class org.sonar.iac.common.extension.IacSensor
fileLinesContextFactory, language, noSonarFilter, sonarRuntime
-
-
Constructor Summary
Constructors Constructor Description CloudformationSensor(org.sonar.api.SonarRuntime sonarRuntime, org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, CloudformationLanguage language)CloudformationSensor(org.sonar.api.SonarRuntime sonarRuntime, org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, CloudformationLanguage language, AnalysisWarningsWrapper analysisWarnings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.sonar.api.batch.fs.FilePredicatecustomFilePredicate(org.sonar.api.batch.sensor.SensorContext sensorContext)protected StringgetActivationSettingKey()protected voidimportExternalReports(org.sonar.api.batch.sensor.SensorContext sensorContext)protected StringrepositoryKey()protected TreeParser<Tree>treeParser()-
Methods inherited from class org.sonar.iac.common.yaml.YamlSensor
describe, mainFilePredicate, toParseException, visitors
-
Methods inherited from class org.sonar.iac.common.extension.IacSensor
execute, isNotSonarLintContext
-
-
-
-
Constructor Detail
-
CloudformationSensor
public CloudformationSensor(org.sonar.api.SonarRuntime sonarRuntime, org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, CloudformationLanguage language)
-
CloudformationSensor
public CloudformationSensor(org.sonar.api.SonarRuntime sonarRuntime, org.sonar.api.measures.FileLinesContextFactory fileLinesContextFactory, org.sonar.api.batch.rule.CheckFactory checkFactory, org.sonar.api.issue.NoSonarFilter noSonarFilter, CloudformationLanguage language, AnalysisWarningsWrapper analysisWarnings)
-
-
Method Detail
-
treeParser
protected TreeParser<Tree> treeParser()
- Overrides:
treeParserin classYamlSensor
-
customFilePredicate
protected org.sonar.api.batch.fs.FilePredicate customFilePredicate(org.sonar.api.batch.sensor.SensorContext sensorContext)
- Specified by:
customFilePredicatein classYamlSensor
-
repositoryKey
protected String repositoryKey()
- Specified by:
repositoryKeyin classIacSensor
-
importExternalReports
protected void importExternalReports(org.sonar.api.batch.sensor.SensorContext sensorContext)
- Overrides:
importExternalReportsin classIacSensor
-
getActivationSettingKey
protected String getActivationSettingKey()
- Specified by:
getActivationSettingKeyin classIacSensor
-
-