Choices outside of range are useless and should be removed.
X : in integer range 7 downto 0;
...
case X is
when 0 =>
Z <= A;
when 1 to 8 => -- Noncompliant: '8' is outside of range 7 downto 0
Z <= B;
end case;
X : in integer range 7 downto 0;
...
case X is
when 0 =>
Z <= A;
when 1 to 7 =>
Z <= B;
end case;