/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@syquel/sonarqube-scanner@2.1.4-alpha.0/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
var exec=require("child_process").execFileSync,log=require("fancy-log"),prepareExecEnvironment=require("./sonarqube-scanner-executable").prepareExecEnvironment,sonarQubeExecutable=require("./sonarqube-scanner-executable").getSonarQubeScannerExecutable,localSonarQubeExecutable=require("./sonarqube-scanner-executable").getLocalSonarQubeScannerExecutable;function scan(e,n){scanCLI([],e,n)}function scanCLI(e,n,a){log("Starting SonarQube analysis...");var r=prepareExecEnvironment(n,process);sonarQubeExecutable((n=>{exec(n,e,r),log("SonarQube analysis finished."),a()}))}function scanUsingCustomSonarQubeScanner(e,n){log("Starting SonarQube analysis (with local install of the SonarQube Scanner)...");var a=prepareExecEnvironment(e,process);localSonarQubeExecutable((e=>{exec(e,[],a),log("SonarQube analysis finished."),n()}))}module.exports=scan,module.exports.cli=scanCLI,module.exports.customScanner=scanUsingCustomSonarQubeScanner;
//# sourceMappingURL=/sm/439bdd30c2d8686952d2a409f57df38481d84271cd29abaf899120506d9c5812.map