Class ScannerFileService

java.lang.Object
org.sonar.plugins.dotnet.tests.ScannerFileService
All Implemented Interfaces:
FileService

@ScannerSide public class ScannerFileService extends Object implements FileService
  • Constructor Details

    • ScannerFileService

      public ScannerFileService(String languageKey, org.sonar.api.batch.fs.FileSystem fileSystem)
  • Method Details

    • isSupportedAbsolute

      public boolean isSupportedAbsolute(String absolutePath)
      Description copied from interface: FileService
      Returns true if the absolute path is indexed by the scanner and has the correct extension.
      Specified by:
      isSupportedAbsolute in interface FileService
    • getAbsolutePath

      public Optional<String> getAbsolutePath(String deterministicBuildPath)
      Description copied from interface: FileService
      Returns the absolute path for a deterministic build path. Note that the absolute path returned by the Scanner may be different from the absolute path returned by the Operating System
      Specified by:
      getAbsolutePath in interface FileService
      Parameters:
      deterministicBuildPath - - the path in the code coverage report when builds are done with the `-deterministic` option
      See Also:
      • IndexedFile.uri()