Class SensorContextUtils
java.lang.Object
org.sonarsource.dotnet.shared.plugins.SensorContextUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasAnyMainFiles(org.sonar.api.batch.fs.FileSystem fs) static booleanhasFilesOfLanguage(org.sonar.api.batch.fs.FileSystem fs, String languageKey) static booleanhasFilesOfType(org.sonar.api.batch.fs.FileSystem fs, org.sonar.api.batch.fs.InputFile.Type fileType, String languageKey) static org.sonar.api.batch.fs.InputFiletoInputFile(org.sonar.api.batch.fs.FileSystem fs, String file) static Optional<org.sonar.api.batch.fs.TextRange>toTextRange(org.sonar.api.batch.fs.InputFile inputFile, SonarAnalyzer.TextRange pbTextRange)
-
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
-
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)
-