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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Id provided for the custom rule is invalid. |
| Code | CUSTOMRULESETSYNTAX_V100 |
| Type | Validation |
| Rule System | Syntax |
| Broad Category | Custom Rules |
| Tags | custom 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.