Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageValue violates length restrictions.
CodeCUSTOMRULES_L002
TypeLinting
Rule SystemSemantic
Broad CategoryCustom Rules
Tagscustom 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.

For More Information