From 8e15dd50df7e1b6b08be45011914161679e6856e Mon Sep 17 00:00:00 2001 From: Jagdish Prajapati Date: Sun, 27 Apr 2025 21:09:46 +0530 Subject: [PATCH] updating design.md for analyzer --- exercises/practice/leap/.meta/design.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exercises/practice/leap/.meta/design.md b/exercises/practice/leap/.meta/design.md index ba1f404b6..6ef49b284 100644 --- a/exercises/practice/leap/.meta/design.md +++ b/exercises/practice/leap/.meta/design.md @@ -6,7 +6,8 @@ This exercise could benefit from the following rules in the [analyzer]: - `essential`: Verify that the solution does not use `java.time.Year.isLeap(int)` or `new java.util.GregorianCalendar().isLeapYear(int)`. - `essential`: Verify that the solution does not contain hard-coded years used in the tests. -- `actionable`: If the solution uses conditional statements like `if/else` or ternary expressions, instruct the student to use simple boolean logic instead. +- `actionable`: If the solution uses `if/else` statements, instruct the student to use simple boolean logic or a single ternary operator instead. +- `actionable`: If the solution uses more than 1 ternary operator, instruct the student that their solution can be simplified. - `actionable`: If the solution contains more than 3 checks, instruct the student that their solution can be simplified. [analyzer]: https://github.com/exercism/java-analyzer