Skip to content

Commit

Permalink
🐛 Support --config in the action
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Apr 23, 2024
1 parent ccc2f78 commit 38a023c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/qodana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 4 additions & 0 deletions scan/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 4 additions & 0 deletions vsts/QodanaScan/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 38a023c

Please sign in to comment.