We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d297dcd commit be2818bCopy full SHA for be2818b
javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java
@@ -490,10 +490,7 @@ public int run() throws IOException {
490
}
491
492
// Fail extraction if no relevant files were found.
493
- boolean seenRelevantFiles = EnvironmentVariables.isActionsExtractor()
494
- ? seenFiles // assume all files are relevant for Actions extractor
495
- : hasSeenCode();
496
- if (!seenRelevantFiles) {
+ if (!seenFiles || !hasSeenCode() && !EnvironmentVariables.isActionsExtractor()) {
497
if (seenFiles) {
498
warn("Only found JavaScript or TypeScript files that were empty or contained syntax errors.");
499
} else {
0 commit comments