Skip to main content

valid-custom-rule-id

Overview

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

The custom rule definition must specify an Id property which can help uniquely identify the rule in the current ruleset. This Id must only use alphanumeric characters or dashes.

PropertyValue
EnabledYes
Maximum SeverityError
MessageId provided for the custom rule is invalid.
CodeCUSTOMRULESETSYNTAX_V100
TypeValidation
Rule SystemSyntax
Broad CategoryCustom Rules
Tagscustom ruleset syntax validation id rule

Suggested Fixes

  • Ensure that your Id is not null or empty.
  • Ensure that your Id does not match A-Za-z0-9-.
  • Remove any characters from your Id that are not alphanumeric characters or dashes.
  • Spaces are not allowed.

For More Information