valid-value-length
Overview
This rule belongs to the custom-rules-linting ruleset and states that:
The target value being validated must abide by any provided maximum/minimum length restrictions.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Value violates length restrictions. |
| Code | CUSTOMRULES_L002 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | Custom Rules |
| Tags | custom rules semantic linting length minimum exclusive minimum maximum exclusive maximum |
Suggested Fixes
- If minimum length boundary is set, ensure that the target value is not below this limit.
- If exclusive minimum restriction is enforced, ensure that the target value is not equal to the specified minimum length boundary.
- If maximum length boundary is set, ensure that the target value is not above this limit.
- If exclusive maximum restriction is enforced, ensure that the target value is not equal to the specified maximum length boundary.