Skip to content

Commit 725dcbe

Browse files
authored
Adding analyzer feedback for salary-calculator concept exercise (#2745)
* Adding analyzer feedback for salary-calculator concept exercise * Merging ternary operator comments into a single one
1 parent 78627da commit 725dcbe

File tree

1 file changed

+9
-2
lines changed
  • exercises/concept/salary-calculator/.meta

1 file changed

+9
-2
lines changed

exercises/concept/salary-calculator/.meta/design.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ This exercise's prerequisites Concepts are:
2121

2222
## Analyzer
2323

24-
This exercise could have the following rule added to the analyzer:
24+
This exercise could benefit from the following rules in the [analyzer]:
2525

26-
- Verify that ternary operators were used.
26+
- `essential`: If the student did not use `ternary operators` on `salaryMultiplier`, `bonusMultiplier` or `finalSalary` methods, instruct them to do so.
27+
- `actionable`: If the student did not reuse the implementation of the `bonusMultiplier` method in the `bonusForProductsSold` method, instruct them to do so.
28+
- `actionable`: If the student did not reuse the implementation of the `salaryMultiplier` or `bonusForProductsSold` methods in the `finalSalary` method, instruct them to do so.
29+
30+
If the solution does not receive any of the above feedback, it must be exemplar.
31+
Leave a `celebratory` comment to celebrate the success!
32+
33+
[analyzer]: https://github.com/exercism/java-analyzer

0 commit comments

Comments
 (0)