mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 17:39:50 +00:00
adjust comments
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user