Output Schemas Reference

When you analyze your code with the code-analyzer run command, use the --output-file flag to write the results to a file. The format of the file depends on the extension you specify; valid values are .html, .sarif, .json, .xml, and .csv. If you don't specify the --output-file flag, then you get human-readable output displayed in the terminal. Use --output-file and --view together to get both an output file and the human-readable results in the terminal.

This command, for example, writes the results to a JSON-formatted file.

See these reference docs for details about the machine-readable output schemas: