Extract getGeneratedSuitePath()

This commit is contained in:
Chuan-kai Lin
2025-08-05 13:34:32 -07:00
parent ee698cb5ba
commit 8dbcef50df
3 changed files with 14 additions and 14 deletions
+12
View File
@@ -513,6 +513,18 @@ export function getCodeQLDatabasePath(config: Config, language: Language) {
return path.resolve(config.dbLocation, language);
}
/**
* Get the path where the generated query suite for the given language lives.
*/
export function getGeneratedSuitePath(config: Config, language: Language) {
return path.resolve(
config.dbLocation,
language,
"temp",
"config-queries.qls",
);
}
/**
* Parses user input of a github.com or GHES URL to a canonical form.
* Removes any API prefix or suffix if one is present.