CodeQL CLI man pages pipeline work - update internal links to point to new articles (#35655)
Co-authored-by: Jules <19994093+jules-p@users.noreply.github.com>
This commit is contained in:
@@ -32,7 +32,7 @@ suite definition have been executed, the result is a set of selected queries.
|
||||
{% ifversion codeql-packs %}
|
||||
{% note %}
|
||||
|
||||
**Note:** Any custom queries that you want to add to a query suite must be in a [{% data variables.product.prodname_codeql %} pack](/code-security/codeql-cli/codeql-cli-reference/about-codeql-packs) and contain the correct query metadata. For more information, see “[Using custom queries with the {% data variables.product.prodname_codeql_cli %}](/code-security/codeql-cli/using-the-codeql-cli/using-custom-queries-with-the-codeql-cli).”
|
||||
**Note:** Any custom queries that you want to add to a query suite must be in a [{% data variables.product.prodname_codeql %} pack](/code-security/codeql-cli/codeql-cli-reference/about-codeql-packs) and contain the correct query metadata. For more information, see "[Using custom queries with the {% data variables.product.prodname_codeql_cli %}](/code-security/codeql-cli/using-the-codeql-cli/using-custom-queries-with-the-codeql-cli)."
|
||||
|
||||
{% endnote %}
|
||||
{% endif %}
|
||||
@@ -139,7 +139,7 @@ regular expressions. When there is more than one metadata key, each key must be
|
||||
The standard metadata keys available to match on are: `description`, `id`, `kind`,
|
||||
`name`, `tags`, `precision`, and `problem.severity`.
|
||||
For more information about query metadata properties, see
|
||||
“[Metadata for {% data variables.product.prodname_codeql %} queries](https://codeql.github.com/docs/writing-codeql-queries/metadata-for-codeql-queries/#metadata-for-codeql-queries).”
|
||||
"[Metadata for {% data variables.product.prodname_codeql %} queries](https://codeql.github.com/docs/writing-codeql-queries/metadata-for-codeql-queries/#metadata-for-codeql-queries)."
|
||||
|
||||
In addition to metadata tags, the keys in the constraint block can also be:
|
||||
|
||||
@@ -248,7 +248,7 @@ use:
|
||||
<!--Changed this to a note to fit with style guide -->
|
||||
{% note %}
|
||||
|
||||
**Note:** You can use the `codeql resolve queries /path/to/suite.qls` command to see which queries are selected by a query suite definition. For more information, see the [resolve queries](https://codeql.github.com/docs/codeql-cli/manual/resolve-queries/) reference documentation.
|
||||
**Note:** You can use the `codeql resolve queries /path/to/suite.qls` command to see which queries are selected by a query suite definition. For more information, see "[AUTOTITLE](/code-security/codeql-cli/codeql-cli-manual/resolve-queries/)."
|
||||
|
||||
{% endnote %}
|
||||
|
||||
@@ -373,25 +373,25 @@ instruction:
|
||||
- description: <name-of-query-suite>
|
||||
```
|
||||
|
||||
This value is displayed when you run [codeql resolve queries](https://codeql.github.com/docs/codeql-cli/manual/resolve-queries/), if the suite is added to a “well-known”
|
||||
directory. For more information, see “[Specifying well-known query suites](#specifying-well-known-query-suites).”
|
||||
This value is displayed when you run [AUTOTITLE](/code-security/codeql-cli/codeql-cli-manual/resolve-queries/), if the suite is added to a "well-known"
|
||||
directory. For more information, see "[Specifying well-known query suites](#specifying-well-known-query-suites)."
|
||||
|
||||
{% ifversion codeql-packs %}
|
||||
## Saving a query suite
|
||||
|
||||
Save your query suite in a file with a `.qls` extension and add it to a CodeQL
|
||||
pack. For more information, see “[About {% data variables.product.prodname_codeql %} packs](/code-security/codeql-cli/codeql-cli-reference/about-codeql-packs#custom-codeql-packs).”
|
||||
pack. For more information, see "[About {% data variables.product.prodname_codeql %} packs](/code-security/codeql-cli/codeql-cli-reference/about-codeql-packs#custom-codeql-packs)."
|
||||
|
||||
## Specifying well-known query suites
|
||||
|
||||
You can use {% data variables.product.prodname_codeql %} packs to declare directories that contain “well-known” query
|
||||
suites. You can use “well-known” query suites on the command line by referring
|
||||
You can use {% data variables.product.prodname_codeql %} packs to declare directories that contain "well-known" query
|
||||
suites. You can use "well-known" query suites on the command line by referring
|
||||
to their file name,
|
||||
without providing their full path. This gives you a simple way of specifying a
|
||||
set of queries, without needing to search inside {% data variables.product.prodname_codeql %} packs and distributions.
|
||||
To declare a directory that contains “well-known” query suites, add the directory
|
||||
To declare a directory that contains "well-known" query suites, add the directory
|
||||
to the `suites` property in the `qlpack.yml` file at the root of your {% data variables.product.prodname_codeql %} pack.
|
||||
For more information, see “[About {% data variables.product.prodname_codeql %} packs](/code-security/codeql-cli/codeql-cli-reference/about-codeql-packs#codeqlpack-yml-properties).”
|
||||
For more information, see "[About {% data variables.product.prodname_codeql %} packs](/code-security/codeql-cli/codeql-cli-reference/about-codeql-packs#codeqlpack-yml-properties)."
|
||||
{% endif %}
|
||||
|
||||
## Using query suites with CodeQL
|
||||
@@ -400,8 +400,8 @@ You can specify query suites on the command line for any command that accepts
|
||||
`.qls` files. For example, you can compile the queries selected by a suite
|
||||
definition using `query compile`, or use the queries in an analysis using
|
||||
`database analyze`. For more information about analyzing {% data variables.product.prodname_codeql %} databases, see
|
||||
“[Analyzing databases with the {% data variables.product.prodname_codeql_cli %}](/code-security/codeql-cli/using-the-codeql-cli/analyzing-databases-with-the-codeql-cli).”
|
||||
"[Analyzing databases with the {% data variables.product.prodname_codeql_cli %}](/code-security/codeql-cli/using-the-codeql-cli/analyzing-databases-with-the-codeql-cli)."
|
||||
|
||||
## Further reading
|
||||
|
||||
- “[{% data variables.product.prodname_codeql %} queries](https://codeql.github.com/docs/writing-codeql-queries/codeql-queries/#codeql-queries)”
|
||||
- "[{% data variables.product.prodname_codeql %} queries](https://codeql.github.com/docs/writing-codeql-queries/codeql-queries/#codeql-queries)"
|
||||
|
||||
Reference in New Issue
Block a user