1.4 KiB
condition: enterprise-only
Improvements to JavaScript analysis
Changes to code extraction
-
Custom file types can now be specified using the
filetypes
property in theextraction/javascript/index
section oflgtm.yml
. The property should be a map from file extensions (including the dot) to file types. Valid file types arehtml
,js
,json
,typescript
,xml
andyaml
. -
ECMAScript 2019 support is now enabled by default.
-
On LGTM, JavaScript extraction for projects that do not contain any JavaScript or TypeScript code will now fail, even if the project contains other file types (such as HTML or YAML) recognized by the JavaScript extractor.
-
XML files can now be extracted on LGTM. To enable XML extraction, set the
xml_mode
property in theextraction/javascript/index
section of yourlgtm.yml
file toall
. The default value of this property isdisabled
, meaning that XML files will not be extracted. (Note, that thexml_mode
property does not apply to files that you map to thexml
file type using thefiletypes
property. LGTM will always extract these files.) -
YAML files are now extracted by default on LGTM. If required, you can specify exclusion filters in your
lgtm.yml
file to override this behavior.
For detailed information about customizing LGTM extraction, see JavaScript extraction.