From 57cbe3a42c01aa8238394737cd847d63eb7f6502 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Mon, 24 Feb 2020 20:15:46 +0100 Subject: [PATCH] chore: lgtm ignore --- lib/datasource/docker/index.ts | 5 ++++- lib/util/exec/docker/index.ts | 2 +- lib/workers/pr/changelog/source-github.ts | 5 +++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/datasource/docker/index.ts b/lib/datasource/docker/index.ts index 3fe4e61f08..1f5a02df44 100644 --- a/lib/datasource/docker/index.ts +++ b/lib/datasource/docker/index.ts @@ -547,7 +547,10 @@ async function getLabels( }, 'Config Manifest is unknown' ); - } else if (err.statusCode === 429 && registry.endsWith('docker.io')) { + } else if ( + err.statusCode === 429 && + registry.endsWith('docker.io') // lgtm [js/incomplete-url-substring-sanitization] + ) { logger.warn({ err }, 'docker registry failure: too many requests'); } else if (err.statusCode >= 500 && err.statusCode < 600) { logger.warn( diff --git a/lib/util/exec/docker/index.ts b/lib/util/exec/docker/index.ts index 35c4ddc641..b2b6b09570 100644 --- a/lib/util/exec/docker/index.ts +++ b/lib/util/exec/docker/index.ts @@ -147,7 +147,7 @@ export async function generateDockerCommand( ...commands, ...prepareCommands(postCommands), ].join(' && '); - result.push(`bash -l -c "${bashCommand.replace(/"/g, '\\"')}"`); + result.push(`bash -l -c "${bashCommand.replace(/"/g, '\\"')}"`); // lgtm [js/incomplete-sanitization] return result.join(' '); } diff --git a/lib/workers/pr/changelog/source-github.ts b/lib/workers/pr/changelog/source-github.ts index 32b19a72c2..eec4e9bdf8 100644 --- a/lib/workers/pr/changelog/source-github.ts +++ b/lib/workers/pr/changelog/source-github.ts @@ -72,9 +72,10 @@ export async function getChangeLogJSON({ hostType: PLATFORM_TYPE_GITHUB, url, }); + // istanbul ignore if if (!config.token) { - // istanbul ignore if - if (URL.parse(sourceUrl).host.endsWith('github.com')) { + // prettier-ignore + if (URL.parse(sourceUrl).host.endsWith('github.com')) { // lgtm [js/incomplete-url-substring-sanitization] logger.warn( { manager, depName, sourceUrl }, 'No github.com token has been configured. Skipping release notes retrieval' -- GitLab