Class InputFileContext

java.lang.Object
org.sonar.iac.common.extension.visitors.TreeContext
org.sonar.iac.common.extension.visitors.InputFileContext

public class InputFileContext extends TreeContext
  • Field Details

    • sensorContext

      public final org.sonar.api.batch.sensor.SensorContext sensorContext
    • inputFile

      public final org.sonar.api.batch.fs.InputFile inputFile
  • Constructor Details

    • InputFileContext

      public InputFileContext(org.sonar.api.batch.sensor.SensorContext sensorContext, org.sonar.api.batch.fs.InputFile inputFile)
  • Method Details

    • reportIssue

      public void reportIssue(org.sonar.api.rule.RuleKey ruleKey, @Nullable TextRange textRange, String message, List<SecondaryLocation> secondaryLocations)
    • reportParseError

      public void reportParseError(String repositoryKey, @Nullable org.sonar.api.batch.fs.TextPointer location)
    • reportAnalysisError

      public void reportAnalysisError(String message, @Nullable org.sonar.api.batch.fs.TextPointer location)