You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/practice/leap/.meta/design.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,8 @@ This exercise could benefit from the following rules in the [analyzer]:
6
6
7
7
-`essential`: Verify that the solution does not use `java.time.Year.isLeap(int)` or `new java.util.GregorianCalendar().isLeapYear(int)`.
8
8
-`essential`: Verify that the solution does not contain hard-coded years used in the tests.
9
-
-`actionable`: If the solution uses conditional statements like `if/else` or ternary expressions, instruct the student to use simple boolean logic instead.
9
+
-`actionable`: If the solution uses `if/else` statements, instruct the student to use simple boolean logic or a single ternary operator instead.
10
+
-`actionable`: If the solution uses more than 1 ternary operator, instruct the student that their solution can be simplified.
10
11
-`actionable`: If the solution contains more than 3 checks, instruct the student that their solution can be simplified.
0 commit comments