зеркало из https://github.com/github/codeql.git
move the "isFileTooLarge" earlier in the pipeline, so we're only doing it once
This commit is contained in:
Родитель
241f977488
Коммит
61c72361cd
|
@ -735,6 +735,7 @@ public class AutoBuild {
|
|||
.collect(Collectors.toList());
|
||||
|
||||
filesToExtract = filesToExtract.stream()
|
||||
.filter(p -> !isFileTooLarge(p))
|
||||
.sorted(PATH_ORDERING)
|
||||
.collect(Collectors.toCollection(() -> new LinkedHashSet<>()));
|
||||
|
||||
|
@ -1063,9 +1064,6 @@ protected DependencyInstallationResult preparePackagesAndDependencies(Set<Path>
|
|||
if (extractedFiles.contains(sourcePath)) {
|
||||
continue;
|
||||
}
|
||||
if (isFileTooLarge(sourcePath)) {
|
||||
continue;
|
||||
}
|
||||
typeScriptFiles.add(sourcePath);
|
||||
}
|
||||
typeScriptFiles.sort(PATH_ORDERING);
|
||||
|
@ -1083,8 +1081,7 @@ protected DependencyInstallationResult preparePackagesAndDependencies(Set<Path>
|
|||
List<Path> remainingTypeScriptFiles = new ArrayList<>();
|
||||
for (Path f : files) {
|
||||
if (!extractedFiles.contains(f)
|
||||
&& extractors.fileType(f) == FileType.TYPESCRIPT
|
||||
&& !isFileTooLarge(f)) {
|
||||
&& extractors.fileType(f) == FileType.TYPESCRIPT) {
|
||||
remainingTypeScriptFiles.add(f);
|
||||
}
|
||||
}
|
||||
|
@ -1250,9 +1247,6 @@ protected DependencyInstallationResult preparePackagesAndDependencies(Set<Path>
|
|||
warn("Skipping " + file + ", which does not exist.");
|
||||
return;
|
||||
}
|
||||
if (isFileTooLarge(file)) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
long start = logBeginProcess("Extracting " + file);
|
||||
|
|
Загрузка…
Ссылка в новой задаче