Remove the LGTM configuration and inline disable comments (issue 13829)

Given that the GitHub Advanced Security workflow now covers everything that LGTM does, but generally faster and with better GitHub-integration, there's no longer much point in also running LGTM separately.
As a follow-up to this patch, we should also disable/remove the LGTM-integration from the PDF.js repository.
This commit is contained in:
Jonas Jenwald 2021-08-03 11:14:49 +02:00
parent 01fd0f59b7
commit 8fef8630fe
4 changed files with 3 additions and 12 deletions

View file

@ -153,7 +153,7 @@ WebServer.prototype = {
fileSize = stats.size;
var isDir = stats.isDirectory();
if (isDir && !/\/$/.test(pathPart)) {
res.setHeader("Location", pathPart + "/" + urlParts[2]); // lgtm [js/server-side-unvalidated-url-redirection]
res.setHeader("Location", pathPart + "/" + urlParts[2]);
res.writeHead(301);
res.end("Redirected", "utf8");
return;