Home

Dead stores should be removed

Rule description

  • Dead stores should be removed

 

Non-compliant Code Example

BEGIN

   IF price > 0 AND price  < 500000 THEN
      CarLevel := 'Low Model';               --Non compliant code (Dead stores should be removed)

   ELSIF price >= 500000 AND price < 1200000 THEN
      CarLevel := 'Hatchback Model';         --Non compliant code (Dead stores should be removed)

   ELSIF price >= 1200000 AND price < 1500000 THEN
      CarLevel := 'Sedan Model';            --Non compliant code (Dead stores should be removed)

   ELSE
      CarLevel := 'Premium Model';          --Non compliant code (Dead stores should be removed)

   END IF;

END;
Visual Expert 2020
 VEPLSQLRULE91