Skip to content

Commit

Permalink
Ignore lgtm specific rules (#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
EzioLi01 authored Nov 23, 2022
1 parent d06a428 commit d56d34b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cdp-proxy/debuggerEndpointHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
2 changes: 1 addition & 1 deletion tools/gulp-extras.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}

Expand Down

0 comments on commit d56d34b

Please sign in to comment.