Range Constraint Rules
range_constraint_100
This rule checks for a single space before the range keyword.
Refer to Configuring Whitespace Rules for options on changing the number of whitespaces..
Violation
subtype my_range is natural range 0 to 7;
Fix
subtype my_range is natural range 0 to 7;
range_constraint_101
This rule checks for a single space after the range keyword.
Refer to Configuring Whitespace Rules for options on changing the number of whitespaces..
Violation
subtype my_range is natural range 0 to 7;
Fix
subtype my_range is natural range 0 to 7;
range_constraint_500
This rule checks the range keyword in range constraints has the proper case.
Refer to Configuring Uppercase and Lowercase Rules for more information.
Violation
subtype t_range is natural RANGE 1 to 0;
Fix
subtype t_range is natural range 1 to 0;