GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • GitHub Docs
  • Security and code quality
  • How-tos
  • Find and fix code vulnerabilities
  • Scan from the command line
  • GitHub security features
  • Secure repository quickstart
  • Secret leakage risks
  • Secret scanning
  • Public monitoring
  • Push protection
  • Secret security with GitHub
  • Secret scanning alerts
  • Custom patterns

This view

  • Original page
  • New address

GeezerVison is showing docs.github.com — Testing query help files - GitHub Docs

Testing query help files

Ensure your CodeQL query help files are valid by previewing them as Markdown.

Who can use this feature?

CodeQL is available for the following repository types:

  • Public repositories on GitHub.com, see GitHub CodeQL Terms and Conditions
  • Organization-owned repositories on GitHub Team with GitHub Code Security enabled

In this article

Prerequisites

  • The query help (.qhelp) files must have accompanying query (.ql) files with identical base names.
  • The query help files should follow the standard structure and style for query help documentation. For more information, see the Query help style guide in the CodeQL repository.

Previewing your query help files

  1. To render your query help files as Markdown, run the following command:

    codeql generate query-help <qhelp|query|dir|suite> --format=markdown [--output=<dir|file>]
    

    For information on the options available for this command, see generate query-help.

  2. If you receive any warning messages, review and fix them, then rerun the command. By default, the CodeQL CLI will print a warning message if:

    • Any of the query help is invalid
    • Any .qhelp files specified in the command don’t have the same base name as an accompanying .ql file
    • Any .ql files specified in the command don’t have the same base name as an accompanying .qhelp file
  3. Review the rendered Markdown in your output directory, file, or terminal to check that your files appear as expected.

Further reading

  • Query help files
  • generate query-help
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.