mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Address review comments
This commit is contained in:
@@ -24,13 +24,19 @@ Query help files can be written in either a custom XML format (with a `.qhelp` e
|
||||
|
||||
#### Markdown query help files
|
||||
|
||||
A Markdown query help file should use the following structure and section order:
|
||||
A Markdown query help file should use the following structure and section order (note that the `Implementation notes` section is optional):
|
||||
|
||||
1. **Overview** (level 2 heading, `## Overview`)
|
||||
2. **Recommendation** (level 2 heading, `## Recommendation`)
|
||||
3. **Example** (level 2 heading, `## Example`)
|
||||
4. **Implementation notes** (optional, level 2 heading, `## Implementation notes`)
|
||||
5. **References** (level 2 heading, `## References`)
|
||||
```
|
||||
## Overview
|
||||
|
||||
## Recommendation
|
||||
|
||||
## Example
|
||||
|
||||
## Implementation notes
|
||||
|
||||
## References
|
||||
```
|
||||
|
||||
Each section should be clearly marked with the appropriate heading. See the other Markdown files in this repository for examples.
|
||||
|
||||
@@ -147,6 +153,7 @@ More information on how to test your query help files can be found [within the d
|
||||
|
||||
1. The XML format allows for the contents of other files to be included in the output generated by processing the file, as mentioned in the section `Code examples`. This is not possible with the Markdown format.
|
||||
2. When using the XML format, references are added to the output HTML file based on CWE tags, as mentioned in the section `Referencing potential security weaknesses`.
|
||||
3. For custom queries and custom query packs, only the Markdown format is supported.
|
||||
|
||||
## Query help example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user