Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageCustom rule Targets list is null or empty.
CodeCUSTOMRULESET_V103
TypeValidation
Rule SystemSemantic
Broad CategoryCustom Rules
Tagscustom ruleset semantic validation target rule

Suggested Fixes

  • Ensure that the Targets list is not empty or null.
  • Ensure that the Targets list contains at least one item.
  • The Targets property must contain a list of definitions for all custom rule targets that need to be validated.

For More Information