adjust comments

This commit is contained in:
Robert Brignull 2020-07-10 11:08:29 +01:00
parent 60126bfb39
commit fb9f2af49f
3 changed files with 7 additions and 7 deletions

View file

@ -27,9 +27,9 @@ export function includeAndExcludeAnalysisPaths(config: configUtils.Config, langu
// control which files/directories are traversed when scanning.
// This allows including files that otherwise would not be scanned, or
// excluding and not traversing entire file subtrees.
// It does not understand double-globs because that would require it to
// It does not understand globs or double-globs because that would require it to
// traverse the entire file tree to determine which files are matched.
// Any paths containing "**" are not included in these.
// Any paths containing "*" are not included in these.
if (config.paths.length !== 0) {
core.exportVariable('LGTM_INDEX_INCLUDE', buildIncludeExcludeEnvVar(config.paths));
}
@ -39,7 +39,7 @@ export function includeAndExcludeAnalysisPaths(config: configUtils.Config, langu
// The 'LGTM_INDEX_FILTERS' environment variable controls which files are
// extracted or ignored. It does not control which directories are traversed.
// This does understand the double-glob syntax.
// This does understand the glob and double-glob syntax.
const filters: string[] = [];
filters.push(...config.paths.map(p => 'include:' + p));
filters.push(...config.pathsIgnore.map(p => 'exclude:' + p));