Skip to content

Commit 1861e27

Browse files
benjaminbiEzioLi01
andauthored
[Feature] Using CodeQL alert suppressions rather than LGTM alert suppressions (#1876)
* [Feature] Using CodeQL alert suppressions rather than LGTM alert suppressions Fixes #1873 * [Feature] Using CodeQL alert suppressions rather than LGTM alert suppressions Fixes #1873 * [Feature] Using CodeQL alert suppressions rather than LGTM alert suppressions Fixes #1873 Co-authored-by: Ezio Li <[email protected]>
1 parent 3cf8f69 commit 1861e27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cdp-proxy/debuggerEndpointHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class DebuggerEndpointHelper {
122122
const requestOptions: https.RequestOptions = {};
123123

124124
if (isSecure && targetAddressIsLoopback) {
125-
requestOptions.rejectUnauthorized = false; // lgtm [js/disabling-certificate-validation]
125+
requestOptions.rejectUnauthorized = false; // CodeQL [js/disabling-certificate-validation] Debug extension does not need to verify certificate
126126
}
127127

128128
const request = driver.get(url, requestOptions, response => {

tools/gulp-extras.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const through = require("through2");
1717
* @param {string} message The error message to display
1818
*/
1919
function logError(pluginName, file, message) {
20-
const sourcePath = path.relative(__dirname, file.path).replace("../", ""); // lgtm [js/incomplete-sanitization]
20+
const sourcePath = path.relative(__dirname, file.path).replace("../", ""); // CodeQL [js/incomplete-sanitization] Debugging extension has no need to use global replacement in file path string
2121
log(`[${colors.cyan(pluginName)}] ${colors.red("error")} ${sourcePath}: ${message}`);
2222
}
2323

0 commit comments

Comments
 (0)