function getQodanaUrl()

in vscode/qodana/src/core/cli/cliDownloader.ts [168:179]


function getQodanaUrl(arch: string, platform: string): string | undefined {
    if (!SUPPORTED_PLATFORMS.includes(platform)) {
        vscode.window.showErrorMessage(cliUnsupportedPlatform(platform));
        return undefined;
    }
    if (!SUPPORTED_ARCHS.includes(arch)) {
        vscode.window.showErrorMessage(cliUnsupportedArch(arch));
        return undefined;
    }
    const archive = platform === 'windows' ? 'zip' : 'tar.gz';
    return `https://github.com/JetBrains/qodana-cli/releases/download/v${version}/qodana_${platform}_${arch}.${archive}`;
}