[Feature] Using CodeQL alert suppressions rather than LGTM alert suppressions (#826)

* [Feature] Using CodeQL alert suppressions rather than LGTM alert suppressions
Fixes #825

* [Feature] Using CodeQL alert suppressions rather than LGTM alert suppressions
Fixes #825
This commit is contained in:
benjaminbi 2022-12-01 09:53:13 +08:00 коммит произвёл GitHub
Родитель 8a75d0acb4
Коммит f6fd638b8b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 2 добавлений и 11 удалений

Просмотреть файл

@ -1,9 +0,0 @@
#########################################################################################
# Use the `queries` block to change the default display of query results. #
#########################################################################################
queries:
# Ignore error: Disabling certificate validation is strongly discouraged
- exclude: js/disabling-certificate-validation
# Ignore warning: This replaces only the first occurrence of ''
- exclude: js/incomplete-sanitization

Просмотреть файл

@ -110,7 +110,7 @@ export class DebuggerEndpointHelper {
const requestOptions: https.RequestOptions = {};
if (isSecure && targetAddressIsLoopback) {
requestOptions.rejectUnauthorized = false;
requestOptions.rejectUnauthorized = false; // CodeQL [js/disabling-certificate-validation] Debug extension does not need to verify certificate
}
const request = driver.get(url, requestOptions, response => {

Просмотреть файл

@ -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("../", ""); // CodeQL [js/incomplete-sanitization] Debugging extension has no need to use global replacement in file path string
log(`[${colors.cyan(pluginName)}] ${colors.red("error")} ${sourcePath}: ${message}`);
}