Skip to content

Commit f7f6ba2

Browse files
committed
started analyzer feedback description
1 parent df966c3 commit f7f6ba2

File tree

1 file changed

+12
-0
lines changed
  • exercises/concept/logs-logs-logs/.meta

1 file changed

+12
-0
lines changed

exercises/concept/logs-logs-logs/.meta/design.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,15 @@ This exercise's prerequisites Concepts are:
2020
- `strings`
2121
- `switch-statement`
2222
- `constructors`
23+
24+
## Analyzer
25+
26+
This exercise could benefit from the following rules in the [analyzer][analyzer]:
27+
28+
1. Parse log level
29+
- `essential`: Verify that a switch statement was used. If they used if-else, comment that switch is better due to their being many cases.
30+
2. Support unknown log level
31+
- `essential`: Again, verify that a default was used in a switch statement. Comment as above in the case of an if-else.
32+
3. Convert log line to short format
33+
34+
[analyzer]: https://github.com/exercism/java-analyzer

0 commit comments

Comments
 (0)