Skip to content

Commit 78627da

Browse files
authored
Adding analyzer feedback for secrets concept exercise (#2736)
* Adding analyzer feedback for secrets concept exercise * adding an extra informative comment separating the ~ operator
1 parent 82c467a commit 78627da

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

exercises/concept/secrets/.meta/design.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,18 @@ The goal of this exercise is to teach the student about bitwise operations in Ja
1717
This exercise's prerequisites Concepts are:
1818

1919
- 'numbers'
20+
21+
## Analyzer
22+
23+
This exercise could benefit from the following rules in the [analyzer]:
24+
25+
- `essential`: If the student did not use the `>>>` operator in the `shiftBack` method, instruct the student to do so.
26+
- `essential`: If the student did not use the `|` operator in the `setBits` method, instruct the student to do so.
27+
- `essential`: If the student did not use the `^` operator in the `flipBits` method, instruct the student to do so.
28+
- `essential`: If the student did not use the `&` operator in the `clearBits` method, instruct the student to do so.
29+
- `informative`: If the solution did not use the `~` operator in the `clearBits` method, inform the student that with it will achieve a more concise solution.
30+
31+
If the solution does not receive any of the above feedback, it must be exemplar.
32+
Leave a `celebratory` comment to celebrate the success!
33+
34+
[analyzer]: https://github.com/exercism/java-analyzer

0 commit comments

Comments
 (0)