Skip to main content

required-custom-rule-targets

Overview

This rule belongs to the custom-ruleset-validation ruleset and states that:

When defining a custom rule, the property Targets must be specified which helps identify the target component(s) that need to be validated. The Targets list must contain at least one target definition.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired property Targets is missing in the rule definition.
CodeCUSTOMRULESET_V102
TypeValidation
Rule SystemSemantic
Broad CategoryCustom Rules
Tagscustom ruleset semantic validation target rule

Suggested Fixes

  • Make sure that you have added the Targets property in the rule definition object.
  • Ensure that the value of property Targets is not null.
  • Name of property Targets is compared in a case-sensitive manner.

For More Information