Project Analysis
For projects and processes, there is an option to check the code by clicking the Analysis button
on the Home menu tab.
The analysis function allows you to check the project/process for compliance with quality and reliability standards. A set of rules is used to check the code, unrelated to the project execution. The rules are based on automation methods and take into account variable and argument names, empty sequences, package restrictions, etc.
The static analyzer checks the code without actually executing the project. Therefore, the analyzer does not detect errors during execution or compilation. For the latter, use the Debugging tool.
Settings
To configure the analyzer rules, click the Analysis ➝ Settings button on the Home menu tab. A window with a list of rules will open:

Each rule has its own code, name, scope, and action type, which will be displayed in the analysis results.
Next to each rule is a checkbox - it can be used to enable/disable the rule. This allows you to configure the analysis parameters individually. If a rule is disabled, it will be ignored when analysis is launched.
In the Action column, the type of message is indicated, that will be displayed on the Analysis panel when a mismatch is detected:
- Error: creates an error on the Analysis panel.
- Warning: creates a warning.
- Information: creates a message.
You can change the action for a rule: click on it in the corresponding column and select another value from the drop-down list.
Rules List
You can find a complete list of rules and their parameters here.
Analysis Results
To launch the code analysis, click the Analysis ➝ Analyse project or Analysis ➝ Analyse process button. The verification result will be displayed at the bottom of the screen on the Analysis panel:

If a mismatch is found, a message will be displayed containing the rule name and code, the name of the file where the violation was found, and a recommendation for correction. To expand the recommendation, click on the Details icon
.
Analysis result can be exported to an *.xlsx file. Export is available by clicking the Export to file button at the top of the panel:

Launching the Analyzer from the Console
The following parameters are used to launch the analyzer from the command line:
- rulepath=<path to rules file>.
- projfile=<path to project>.
- outputfile=<path to results file>.
- errlog=<path to log file>.
- noclose - do not close upon completion of analysis.
- console - output to console.
- output=<json,xml,xlsx> - result file format.
- lang=<en-EN> - language.
Example:
Primo.ProjectAnalyzer.App.exe "rulepath=c:\Test\rules2.json" "projfile=C:\Users\Username\Documents\Primo\LibTest\project.ltp" noclose console "output=xlsx" "outputfile=c:\Test\aout.xlsx" "errlog=c:\Test\elog.txt" "lang=en"Automatic Syntax Checking
Automatic syntax checking is available, which works in the background. The setting is complementary: if the syntax contains an error, a warning icon will appear on the element where it was detected. You can see the details of the error by hovering over the icon:

To enable background checking, go to the File ➝ Settings ➝ General ➝ Debugger menu and enable the Check syntax parameter.
In the drop-down list C# syntax validation algorithm select the algorithm you need.
C# Syntax Validation Algorithm
Starting with version 1.24.8, it is possible to select the C# syntax validation algorithm in the settings. Two options are available:
- a new algorithm based on Actipro libraries
- a classic algorithm that uses Microsoft CodeAnalysis libraries. The Microsoft algorithm is used by default.

It is also possible to create your own analysis rules.