Add support for LGTM_INDEX_FILTERS

This commit is contained in:
Robert Brignull 2020-07-07 11:37:56 +01:00
parent 9da537eb33
commit fe3dbb7e64
6 changed files with 53 additions and 13 deletions

View file

@ -20,6 +20,7 @@ ava_1.default("emptyPaths", async (t) => {
analysisPaths.includeAndExcludeAnalysisPaths(config, []);
t.is(process.env['LGTM_INDEX_INCLUDE'], undefined);
t.is(process.env['LGTM_INDEX_EXCLUDE'], undefined);
t.is(process.env['LGTM_INDEX_FILTERS'], undefined);
});
ava_1.default("nonEmptyPaths", async (t) => {
let config = new configUtils.Config();
@ -28,5 +29,6 @@ ava_1.default("nonEmptyPaths", async (t) => {
analysisPaths.includeAndExcludeAnalysisPaths(config, []);
t.is(process.env['LGTM_INDEX_INCLUDE'], 'path1\npath2');
t.is(process.env['LGTM_INDEX_EXCLUDE'], 'path3\npath4');
t.is(process.env['LGTM_INDEX_FILTERS'], 'include:path1\ninclude:path2\nexclude:path3\nexclude:path4');
});
//# sourceMappingURL=analysis-paths.test.js.map