Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.22 KB

File metadata and controls

32 lines (21 loc) · 1.22 KB
description Reference for the codeql resolve metadata command

Command Resource for codeql resolve metadata

The codeql resolve metadata command is used resolve and return the key-value metadata pairs from a query source file.

Primary use of codeql resolve metadata

The following is an example use of the command for extracting query metadata:

codeql resolve metadata \
    --format=json \
    -- languages/<language>/<pack-basename>/src/<QueryBasename>/<QueryBasename>.ql

Help for codeql resolve metadata

Run codeql resolve metadata -h for more information. Run codeql resolve metadata -h -vv for much more information.

Commands commonly run BEFORE codeql resolve metadata

Commands commonly run AFTER codeql resolve metadata

  • codeql query run - Run the query against an existing CodeQL database, which will produce an output .bqrs file containing the Binary Query Results Set (BQRS) from the query run.
  • codeql test run - Run the query against its unit tests after validating query metadata.