Can I import the output result into a txt file? How to do it? #164
Answered
by
rdmarsh2
Zhao-shenghao
asked this question in
General
|
Can I import the output result into a txt or else file? How to do it? |
Answered by
rdmarsh2
Jul 31, 2020
Replies: 1 comment
|
There isn't currently a way to do that through VS Code directly (but there's a related open issue: github/vscode-codeql#439). What you can do currently is look through the CodeQL extension log in the output pane, and find the last call to |
0 replies
Answer selected by
xcorail
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

There isn't currently a way to do that through VS Code directly (but there's a related open issue: github/vscode-codeql#439). What you can do currently is look through the CodeQL extension log in the output pane, and find the last call to
bqrs interpret, which will have paths to a JSON-formatted SARIF file (ending in .sarif) and a binary query results file (ending in .bqrs). The SARIF file is human readable, and extensions to view it directly in the problems view are available for VS Code and Visual Studio. You can also usecodeql bqrs interpretto convert a bqrs file into a CSV, but that won't have path information included.