mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JavaScript: Teach autobuilder to include codeql-javascript-*.json files.
This commit is contained in:
@@ -146,7 +146,8 @@ import com.semmle.util.trap.TrapWriter;
|
||||
* FileType#HTML} (currently ".htm", ".html", ".xhtm", ".xhtml", ".vue").
|
||||
* <li>All YAML files, that is, files with one of the extensions supported by {@link
|
||||
* FileType#YAML} (currently ".raml", ".yaml", ".yml").
|
||||
* <li>Files with base name "package.json".
|
||||
* <li>Files with base name "package.json" or "tsconfig.json", and files whose base name
|
||||
* is of the form "codeql-javascript-*.json".
|
||||
* <li>JavaScript, JSON or YAML files whose base name starts with ".eslintrc".
|
||||
* <li>All extension-less files.
|
||||
* </ul>
|
||||
@@ -402,10 +403,12 @@ public class AutoBuild {
|
||||
for (FileType filetype : defaultExtract)
|
||||
for (String extension : filetype.getExtensions()) patterns.add("**/*" + extension);
|
||||
|
||||
// include .eslintrc files, package.json files, and tsconfig.json files
|
||||
// include .eslintrc files, package.json files, tsconfig.json files, and
|
||||
// codeql-javascript-*.json files
|
||||
patterns.add("**/.eslintrc*");
|
||||
patterns.add("**/package.json");
|
||||
patterns.add("**/tsconfig.json");
|
||||
patterns.add("**/codeql-javascript-*.json");
|
||||
|
||||
// include any explicitly specified extensions
|
||||
for (String extension : fileTypes.keySet()) patterns.add("**/*" + extension);
|
||||
|
||||
Reference in New Issue
Block a user