Ignore lgtm specific rules (#1871)
This commit is contained in:
Родитель
d06a428f77
Коммит
d56d34bb89
|
@ -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 => {
|
||||
|
|
|
@ -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}`);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче