Overview of software analysis

In a software analysis, a configurable set of coding rules is applied to a specified group of source code files. Results are generated that identify lines of source code that violate a rule.

Software analysis configuration

The software analysis is guided by a software analysis configuration, which is created in the software analysis configuration window. The configuration contains two types of information:
Scope
The scope identifies the source code files to which the software analysis is to be applied.
Rules
The rules are a set of coding requirements.

Running code reviews

In the product workbench, you can run a code review from the software analysis configuration window, from the project explorer view, or from a supported programming language editor. The results show as a report in the Software Analyzer Results view. Each result includes the name of the source code file, the line number, and the rule that was violated. Double-clicking a result opens the source code file in the appropriate editor at the problem location.

In the case of EGL Rich UI programs, due to the fact that the Rich UI editor is brought up by default, the source at the problem location will not be displayed. To circumvent this situation, you must open the EGL Rich UI program with the standard EGL editor, instead of the EGL Rich UI editor, and then double-click on the result. To open the EGL Rich UI program with the standard editor, right-mouse click on the EGL source file and use the "Open with" option.

Results can be exported to a file in XML format.


Feedback