message: Fix no shadow issues in codeql.ts
  Two simple variable renames from "path" to "paths" since the types are
  arrays of strings (not just one string).
  One function definition inside a function moved outside that function
  to avoid shadowing the "options" argument.
diff: @@ -631,24 +631,11 @@ function getCodeQLForCmd(cmd: string): CodeQL {
  /**
  * Gets the options for `path` of `options` as an array of extra option strings.
  */
  -function getExtraOptionsFromEnv(path: string[]) {
  +function getExtraOptionsFromEnv(paths: string[]) {
  const options: ExtraOptions = util.getExtraOptionsEnvParam();
  - return getExtraOptions(options, path, []);
  + return getExtraOptions(options, paths, []);
  }
  -/**
  - * Gets the options for `path` of `options` as an array of extra option strings.
  - *
  - * - the special terminal step name '*' in `options` matches all path steps
  - * - throws an exception if this conversion is impossible.
  - *
  - * Exported for testing.
  - */
  -export function getExtraOptions(
  - options: any,
  - path: string[],
  - pathInfo: string[]
  -): string[] {
  /**
  * Gets `options` as an array of extra option strings.
  *
  @@ -675,14 +662,28 @@ export function getExtraOptions(
  return `${o}`;
  });
  }
  +
  +/**
  + * Gets the options for `path` of `options` as an array of extra option strings.
  + *
  + * - the special terminal step name '*' in `options` matches all path steps
  + * - throws an exception if this conversion is impossible.
  + *
  + * Exported for testing.
  + */
  +export function getExtraOptions(
  + options: any,
  + paths: string[],
  + pathInfo: string[]
  +): string[] {
  const all = asExtraOptions(options?.["*"], pathInfo.concat("*"));
  const specific =
  - path.length === 0
  + paths.length === 0
  ? asExtraOptions(options, pathInfo)
  : getExtraOptions(
  - options?.[path[0]],
  - path?.slice(1),
  - pathInfo.concat(path[0])
  + options?.[paths[0]],
  + paths?.slice(1),
  + pathInfo.concat(paths[0])
  );
  return all.concat(specific);
  }
  