Home

WHEN clauses should not have too many lines

Rule description

  • WHEN clauses should not have too many lines

 

Non-compliant Code Example

CHOOSE CASE Real(cnt)

CASE is < 10 //Non compliant code (When clause should contains lines less then 6)
		sle_message = "Case 1"

        sle_message = "Case 2"

        sle_message = "Case 3"

        sle_message = "Case 4"

        sle_message = "Case 5"

        sle_message = "Case 6"

        sle_message = "Case 7"

        sle_message = "Case 8"
CASE 11 to 20

        sle_message = "Case 11 to 20"
CASE ELSE
        sle_message = "Cannot evaluate!"
END CHOOSE
Visual Expert 2020
 VEPBRULE66