Skip to content

-

The topic describes the Analysis Rule Parameters

analysis-rules-parameters

Create parameters for the analysis rule using the Parameters tab. A single analysis rule parameter can have none or several predefined values from which the user will be able to choose before running the Static Code Analysis command.

A parameter value can be referenced inside the analysis rule using the $parametersvariable:

$parameters/Param[@Name='ParameterName']/text()

The Always require parameters to be setanalysis rule option can be used to make the Analysis Parameters dialog always appear when the rule is applied. If this option is not checked, the default values of the parameters will be used.