Check configuration custom1#
Check configuration
Description#
Check the given configuration using specific parameters.
The list of parameters is given as a comma-separated string. Parameters are:
conf
: name of the configuration to check.rootPackage
: name of the root package in the configuration.“parameters:n” “* ‘conf=’ Name of the configuration (e.g.: ‘conf=KCG’)n” “* ‘rootPackage=’ Name of the root package (e.g.: ‘rootPackage=package1’)”
Rationale#
This illustrates how to perform a series of arbitrary, custom checks on a configuration.
Verification#
This rule finds the target configuration in the current project and makes a series of custom verifications on it:
“Skip unused model objects” parameter is unchecked
Root node name starts with
SoftwareComponents::ACD_Appl::
Target adaptor is set to “None” under Code Integration
Under Optimizations, “Local variables as static” and “Input threshold” are unchecked
User configuration is set to
..\..\include\<model_name>_user_macros.h
CPU type is set to
win64
Annotation type file
..\..\..\..\architecture\scade_plugins\fcmsAnnotationType\MyAnnotationType_suite.aty
is usedIf “Global Prefix” is set, its value also prefixes the name of the root operator
Resolution#
Modify the offending configuration as detailed in the rule failure message.
Customization#
N/A.