Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ccfe4f

Browse files
author
Max Schaefer
committed
JavaScript: Teach autobuilder to include codeql-javascript-*.json files.
1 parent ec573b5 commit 0ccfe4f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@
146146
* FileType#HTML} (currently ".htm", ".html", ".xhtm", ".xhtml", ".vue").
147147
* <li>All YAML files, that is, files with one of the extensions supported by {@link
148148
* FileType#YAML} (currently ".raml", ".yaml", ".yml").
149-
* <li>Files with base name "package.json".
149+
* <li>Files with base name "package.json" or "tsconfig.json", and files whose base name
150+
* is of the form "codeql-javascript-*.json".
150151
* <li>JavaScript, JSON or YAML files whose base name starts with ".eslintrc".
151152
* <li>All extension-less files.
152153
* </ul>
@@ -402,10 +403,12 @@ private void setupFilters() {
402403
for (FileType filetype : defaultExtract)
403404
for (String extension : filetype.getExtensions()) patterns.add("**/*" + extension);
404405

405-
// include .eslintrc files, package.json files, and tsconfig.json files
406+
// include .eslintrc files, package.json files, tsconfig.json files, and
407+
// codeql-javascript-*.json files
406408
patterns.add("**/.eslintrc*");
407409
patterns.add("**/package.json");
408410
patterns.add("**/tsconfig.json");
411+
patterns.add("**/codeql-javascript-*.json");
409412

410413
// include any explicitly specified extensions
411414
for (String extension : fileTypes.keySet()) patterns.add("**/*" + extension);

0 commit comments

Comments
 (0)