Skip to content

Commit e402516

Browse files
authored
Update leap design.md for analyzer (#2940)
1 parent df966c3 commit e402516

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exercises/practice/leap/.meta/design.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ This exercise could benefit from the following rules in the [analyzer]:
66

77
- `essential`: Verify that the solution does not use `java.time.Year.isLeap(int)` or `new java.util.GregorianCalendar().isLeapYear(int)`.
88
- `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.
1011
- `actionable`: If the solution contains more than 3 checks, instruct the student that their solution can be simplified.
1112

1213
[analyzer]: https://github.com/exercism/java-analyzer

0 commit comments

Comments
 (0)