JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.

If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.

If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.

CodeSonar® 9.2p0 CONFIDENTIAL CodeSecure Inc
General

Output File Formats

CodeSonar GUI pages that contain data from the hub database can be output to files in various formats. All GUI pages can be saved as HTML.

Related Sections



Obtaining Output Files

Text, CSV, XML, JSON, SARIF, and HTML versions of a GUI page (where available) can be obtained directly from that page.

For Text, CSV, XML, JSON, or SARIF output:

  1. Navigate to the page you wish to output.
  2. Select the Text, CSV, XML, JSON, or SARIF link from the standard header.

    Depending on your browser configuration, one of the following will happen.

  3. If the file is opened in your browser or another piece of software, use the built-in save functionality to save the file to your preferred location.

In general, the output file contents will reflect the contents of the page as you are currently viiewing it. In particular, if the page includes one or more tables:

For HTML output:

  1. Navigate to the page you wish to output.
  2. Use your browser's built-in save functionality to save the page to your preferred location.

Format Availability

All GUI pages can be saved as HTML.

For the remaining output formats, see the table in section GUI Reference: Page Type Properties, which lists the available output formats for all GUI page types.

Text

If the data in a page is not primarily tabular, CodeSonar provides plain text output in a format determined by the page type.

CSV

If the data in a page is primarily tabular, CodeSonar provides output in CSV (comma-separated value) format compliant with RFC 4180.

XML

For each GUI page type that provides XML output, the relevant schema (.xsd) is listed in the GUI reference page for that page type..All XML schemas are located in $CSONAR/codesonar/py/hub/media/xmlschemas

Character Encoding in XML Output

In order to fully support internationalization, CodeSonar does not require any single encoding of source code files. In cases where this leads to ambiguity in interpretation, CodeSonar passes the ambiguity through the entire system and back to the user so that it can be appropriately decoded.

JSON

If the data in a page is primarily tabular, CodeSonar provides output in JSON (JavaScript Object Notation) format. For more information about JSON, see the JSON website.

SARIF

SARIF output is currently only available for the Analysis: Warnings, Warning Report, and Warning Search Results pages.

For more information about SARIF, see Static Analysis Results Interchange Format.

 

 

To report problems with this documentation, please visit https://support.codesecure.com/.