Class SensorContextUtils

java.lang.Object
org.sonarsource.dotnet.shared.plugins.SensorContextUtils

public final class SensorContextUtils extends Object
  • Method Details

    • toInputFile

      @CheckForNull public static org.sonar.api.batch.fs.InputFile toInputFile(org.sonar.api.batch.fs.FileSystem fs, String file)
    • hasFilesOfType

      public static boolean hasFilesOfType(org.sonar.api.batch.fs.FileSystem fs, org.sonar.api.batch.fs.InputFile.Type fileType, String languageKey)
    • hasFilesOfLanguage

      public static boolean hasFilesOfLanguage(org.sonar.api.batch.fs.FileSystem fs, String languageKey)
    • hasAnyMainFiles

      public static boolean hasAnyMainFiles(org.sonar.api.batch.fs.FileSystem fs)
    • toTextRange

      public static Optional<org.sonar.api.batch.fs.TextRange> toTextRange(org.sonar.api.batch.fs.InputFile inputFile, SonarAnalyzer.TextRange pbTextRange)