at-least-one-custom-rule-target
Overview
This rule belongs to the custom-ruleset-validation ruleset and states that:
The value of property Targets in a custom rule must be defined as a non-null list containing at least one rule target definition.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Custom rule Targets list is null or empty. |
| Code | CUSTOMRULESET_V103 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Custom Rules |
| Tags | custom ruleset semantic validation target rule |
Suggested Fixes
- Ensure that the
Targetslist is not empty or null. - Ensure that the
Targetslist contains at least one item. - The
Targetsproperty must contain a list of definitions for all custom rule targets that need to be validated.