codeql CLI lgtm.yml: how to customize javascript extraction?

296 Views Asked by At

I can use an lgtm.yml file to customize the javascript extractor when building a database with LGTM.com, but how do I provide these customizations to the codeql CLI?

Specifically, I want to include a directory that the extractor excludes by default (node_modules).

Here is my lgtm.yml file:

extraction:
  javascript:
    index:
      include:
        - node_modules
1

There are 1 best solutions below

0
On

Update:

Supporting this is a work in progress. However in the meantime, including directories that are excluded by default can be enabled by setting the following environment variable before creating the database:

export LGTM_INDEX_FILTERS='include:/'

I will update the answer when better support is added.