Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding analyzer feedback for tim-from-marketing concept exercise #2754

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions exercises/concept/tim-from-marketing/.meta/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,16 @@

- `strings`: strings will be compared to null and basic methods from strings will be called.
- `if-else-statements`: using a conditional statement.

## Analyzer

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

- `actionable`: If the solution uses `Optionals` to solve the exercise, encourage the student to try solving it using `null` instead.
- `informative`: If the solution uses `String.format`, instruct the student to use simple string concatenation instead.
Explain that `String.format` is significantly slower than concatenating strings and should be used in more complex scenarios.

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