From 38a023ccc416104370e0b0e7f0f35388db372d46 Mon Sep 17 00:00:00 2001 From: tiulpin Date: Tue, 23 Apr 2024 13:07:02 +0200 Subject: [PATCH] :bug: Support `--config` in the action --- common/qodana.ts | 4 ++++ scan/dist/index.js | 4 ++++ vsts/QodanaScan/index.js | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/common/qodana.ts b/common/qodana.ts index 17ac75d1..52091ab7 100644 --- a/common/qodana.ts +++ b/common/qodana.ts @@ -121,6 +121,10 @@ export function getQodanaPullArgs(args: string[]): string[] { if (project) { pullArgs.push('-i', project) } + const config = extractArg('--config', '--config', args) + if (config) { + pullArgs.push('--config', config) + } return pullArgs } diff --git a/scan/dist/index.js b/scan/dist/index.js index 6266c0e6..ba309017 100644 --- a/scan/dist/index.js +++ b/scan/dist/index.js @@ -24380,6 +24380,10 @@ function getQodanaPullArgs(args) { if (project) { pullArgs.push("-i", project); } + const config = extractArg("--config", "--config", args); + if (config) { + pullArgs.push("--config", config); + } return pullArgs; } function getQodanaScanArgs(args, resultsDir, cacheDir) { diff --git a/vsts/QodanaScan/index.js b/vsts/QodanaScan/index.js index 9a4eba35..1e201f3f 100644 --- a/vsts/QodanaScan/index.js +++ b/vsts/QodanaScan/index.js @@ -141,6 +141,10 @@ function getQodanaPullArgs(args) { if (project) { pullArgs.push("-i", project); } + const config = extractArg("--config", "--config", args); + if (config) { + pullArgs.push("--config", config); + } return pullArgs; } function getQodanaScanArgs(args, resultsDir, cacheDir) {