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:

  1. “Skip unused model objects” parameter is unchecked

  2. Root node name starts with SoftwareComponents::ACD_Appl::

  3. Target adaptor is set to “None” under Code Integration

  4. Under Optimizations, “Local variables as static” and “Input threshold” are unchecked

  5. User configuration is set to ..\..\include\<model_name>_user_macros.h

  6. CPU type is set to win64

  7. Annotation type file ..\..\..\..\architecture\scade_plugins\fcmsAnnotationType\MyAnnotationType_suite.aty is used

  8. If “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.