Skip to content

Commit

Permalink
Adding analyzer feedback for secrets concept exercise (#2736)
Browse files Browse the repository at this point in the history
* Adding analyzer feedback for secrets concept exercise

* adding an extra informative comment separating the ~ operator
  • Loading branch information
manumafe98 authored Feb 29, 2024
1 parent 82c467a commit 78627da
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions exercises/concept/secrets/.meta/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,18 @@ The goal of this exercise is to teach the student about bitwise operations in Ja
This exercise's prerequisites Concepts are:

- 'numbers'

## Analyzer

This exercise could benefit from the following rules in the [analyzer]:

- `essential`: If the student did not use the `>>>` operator in the `shiftBack` method, instruct the student to do so.
- `essential`: If the student did not use the `|` operator in the `setBits` method, instruct the student to do so.
- `essential`: If the student did not use the `^` operator in the `flipBits` method, instruct the student to do so.
- `essential`: If the student did not use the `&` operator in the `clearBits` method, instruct the student to do so.
- `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.

If the solution does not receive any of the above feedback, it must be exemplar.
Leave a `celebratory` comment to celebrate the success!

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

0 comments on commit 78627da

Please sign in to comment.