Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Mar 1, 2019

Bonus task from #946 (comment).

asger-semmle and others added 30 commits February 13, 2019 15:55
…t ICryptoTransform that would be thread-unsafe, and potentially result in incorrect cryptographic results.
Every once in a while we encounter projects using some custom file extension for files that we could in principle extract, but since the extractor doesn't know about the extension the files are skipped.

To handle this, the legacy extractor has a `--file-type` option that one can use to specify a file type to use for all files in that particular extraction. So far, `AutoBuild` has nothing of the sort.

This PR proposes to introduce an environment variable `LGTM_INDEX_FILETYPES` to allow a similar customisation. In the fullness of time, this variable would be set through `lgtm.yml` in the usual way, but for now it is undocumented and for internal use only.

Specifically, `LGTM_INDEX_FILETYPES` is a newline-separated list of ".extension:filetype" pairs, specifying that files with the given `.extension` should be extracted as type `filetype`, where
`filetype` is one of `js`, `html`, `json`, `typescript` or `yaml`.

For example, `.jsm:js` causes all `.jsm` files to be extracted as JavaScript.

This can also be used to override default file types: for example, by specifying `.js:typescript` all JavaScript files will be extracted as TypeScript.
@ghost ghost added the JS label Mar 1, 2019
@ghost ghost self-requested a review as a code owner March 1, 2019 11:03
@xiemaisi xiemaisi added this to the 1.20 milestone Mar 1, 2019
@aibaars aibaars changed the base branch from master to rc/1.20 March 1, 2019 17:54
@xiemaisi
Copy link

xiemaisi commented Mar 1, 2019

This needs a rebase to sit cleanly on top of rc/1.20.

@ghost ghost mentioned this pull request Mar 4, 2019
@ghost
Copy link
Author

ghost commented Mar 4, 2019

#1028

@ghost ghost closed this Mar 4, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants