Interface ScannerEngineFacade

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
AbstractScannerEngineFacade, InProcessScannerEngineFacade, NewScannerEngineFacade, SimulationScannerEngineFacade

public interface ScannerEngineFacade extends AutoCloseable
  • Method Details

    • getBootstrapProperties

      Map<String,String> getBootstrapProperties()
      Get the properties that will be passed to the bootstrapped scanner engine.
    • getServerVersion

      String getServerVersion()
      Get the version of the SonarQube Server that the scanner is connected to. Don't call this method if the scanner is connected to SonarQube Cloud.
      Returns:
      the version of the SonarQube Server
      Throws:
      UnsupportedOperationException - if the scanner is connected to SonarQube Cloud
    • isSonarQubeCloud

      boolean isSonarQubeCloud()
      Returns:
      true if the scanner is connected to SonarQube Cloud, false otherwise
    • analyze

      boolean analyze(Map<String,String> analysisProps)
      Run the analysis. In case of failure, a log message should have been emitted.
      Returns:
      true if the analysis succeeded, false otherwise.