in vsts/src/utils.ts [62:93]
args: parseRawArguments(tl.getInput('args', false) || ''),
resultsDir: tl.getInput('resultsDir', false) || path.join(home, 'results'),
cacheDir: tl.getInput('cacheDir', false) || path.join(home, 'cache'),
uploadResult: tl.getBoolInput('uploadResult', false),
uploadSarif: tl.getBoolInput('uploadSarif', false),
artifactName: tl.getInput('artifactName', false) || 'qodana-report',
useNightly: tl.getBoolInput('useNightly', false),
prMode: tl.getBoolInput('prMode', false),
postComment: tl.getBoolInput('postPrComment', false),
pushFixes: tl.getInput('pushFixes', false) || 'none',
commitMessage:
tl.getInput('commitMessage', false) ||
'🤖 Apply quick-fixes by Qodana \n\n[skip ci]',
workingDirectory: tl.getInput('workingDirectory', false) || '',
// Not used by the Azure task
additionalCacheKey: '',
primaryCacheKey: '',
useAnnotations: false,
useCaches: false,
cacheDefaultBranchOnly: false,
githubToken: ''
}
}
/**
* Runs the qodana command with the given arguments.
* @param args docker command arguments.
* @returns The qodana command execution output.
*/
export async function qodana(args: string[] = []): Promise<number> {
const inputs = getInputs()
const env: Record<string, string> = {