diff --git a/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java b/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java index 762df7fe8e5..71bb515ec54 100644 --- a/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java +++ b/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java @@ -16,8 +16,10 @@ import java.nio.file.SimpleFileVisitor; import java.nio.file.attribute.BasicFileAttributes; import java.util.ArrayList; import java.util.Arrays; +import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; +import java.util.Map; import java.util.Set; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; @@ -69,6 +71,8 @@ import com.semmle.util.trap.TrapWriter; *
  • LGTM_INDEX_FILTERS: a newline-separated list of {@link ProjectLayout}-style * patterns that can be used to refine the list of files to include and exclude
  • *
  • LGTM_INDEX_TYPESCRIPT: whether to extract TypeScript
  • + *
  • LGTM_INDEX_FILETYPES: a newline-separated list of ".extension:filetype" pairs + * specifying which {@link FileType} to use for the given extension
  • *
  • LGTM_INDEX_THREADS: the maximum number of files to extract in parallel
  • *
  • LGTM_TRAP_CACHE: the path of a directory to use for trap caching
  • *
  • LGTM_TRAP_CACHE_BOUND: the size to bound the trap cache to
  • @@ -160,6 +164,12 @@ import com.semmle.util.trap.TrapWriter; *

    * *

    + * The environment variable LGTM_INDEX_FILETYPES may be set to a newline-separated + * list of file type specifications of the form .extension:filetype, causing all + * files whose name ends in .extension to also be included by default. + *

    + * + *

    * The default exclusion patterns cause the following files to be excluded: *

    *