File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -666,6 +666,9 @@ public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs)
666666 throws IOException {
667667 if (!dir .equals (currentRoot [0 ]) && (excludes .contains (dir ) || dir .toFile ().isHidden ()))
668668 return FileVisitResult .SKIP_SUBTREE ;
669+ if (Files .exists (dir .resolve ("codeql-database.yml" ))) {
670+ return FileVisitResult .SKIP_SUBTREE ;
671+ }
669672 return super .preVisitDirectory (dir , attrs );
670673 }
671674 };
Original file line number Diff line number Diff line change @@ -585,4 +585,12 @@ public void qhelpAsXmlAndAllXml() throws IOException {
585585 addFile (true , LGTM_SRC , "tst.qhelp" );
586586 runTest ();
587587 }
588+
589+ @ Test
590+ public void skipCodeQLDatabases () throws IOException {
591+ addFile (true , LGTM_SRC , "tst.js" );
592+ addFile (false , LGTM_SRC , "db/codeql-database.yml" );
593+ addFile (false , LGTM_SRC , "db/foo.js" );
594+ runTest ();
595+ }
588596}
You can’t perform that action at this time.
0 commit comments