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.0p0 Hot Tips | CONFIDENTIAL | CodeSecure Inc |
The codesonar analysis_id.py command prints (to stdout) the analysis ID for the most recent analysis performed in a given analysis directory.
The codesonar analysis_id.py command prints (to stdout) the analysis ID for the most recent analysis performed in a given analysis directory.
This is useful when you are performing an automated task that needs an analysis ID to access analysis information on the hub. For example, all of the example scripts for downloading analysis warnings, changing an analysis name, and deleting an analysis require an analysis ID to identify the analysis of interest.
The standard form of the command line is:
The subcommand will also accept the path to the corresponding .prj file, or the path with the .prj_files extension omitted:
where:
| path/to/projname.prj_files or path/to/projname.prj or path/to/projname |
Specify that the analysis directory for the analysis of interest is path/to/projname.prj_files. |
|---|---|
| [-strip] | Specify that CodeSonar should not print a newline after the
analysis ID. This option can be convenient when you are using codesonar analysis_id.py in a bash shell subprocess on Windows. |