From d56d34bb899e12892109b576f6e0ce38e0a72d0f Mon Sep 17 00:00:00 2001 From: Ezio Li Date: Wed, 23 Nov 2022 01:50:31 +0000 Subject: [PATCH] Ignore lgtm specific rules (#1871) --- src/cdp-proxy/debuggerEndpointHelper.ts | 2 +- tools/gulp-extras.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cdp-proxy/debuggerEndpointHelper.ts b/src/cdp-proxy/debuggerEndpointHelper.ts index 0d46159c7..61bcd2263 100644 --- a/src/cdp-proxy/debuggerEndpointHelper.ts +++ b/src/cdp-proxy/debuggerEndpointHelper.ts @@ -122,7 +122,7 @@ export class DebuggerEndpointHelper { const requestOptions: https.RequestOptions = {}; if (isSecure && targetAddressIsLoopback) { - requestOptions.rejectUnauthorized = false; + requestOptions.rejectUnauthorized = false; // lgtm [js/disabling-certificate-validation] } const request = driver.get(url, requestOptions, response => { diff --git a/tools/gulp-extras.js b/tools/gulp-extras.js index 3c9407bfe..f22b27ff7 100644 --- a/tools/gulp-extras.js +++ b/tools/gulp-extras.js @@ -17,7 +17,7 @@ const through = require("through2"); * @param {string} message The error message to display */ function logError(pluginName, file, message) { - const sourcePath = path.relative(__dirname, file.path).replace("../", ""); + const sourcePath = path.relative(__dirname, file.path).replace("../", ""); // lgtm [js/incomplete-sanitization] log(`[${colors.cyan(pluginName)}] ${colors.red("error")} ${sourcePath}: ${message}`); }