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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Required property Targets is missing in the rule definition. |
Code | CUSTOMRULESET_V102 |
Type | Validation |
Rule System | Semantic |
Broad Category | Custom Rules |
Tags | custom 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.