Package org.sonarsource.scanner.lib
Interface ScannerEngineFacade
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractScannerEngineFacade,InProcessScannerEngineFacade,NewScannerEngineFacade,SimulationScannerEngineFacade
-
Method Summary
Modifier and TypeMethodDescriptionbooleanRun the analysis.Get the properties that will be passed to the bootstrapped scanner engine.Get the version of the SonarQube Server that the scanner is connected to.booleanMethods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
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
Run the analysis. In case of failure, a log message should have been emitted.- Returns:
- true if the analysis succeeded, false otherwise.
-