Skip to content

Commit 7e4d877

Browse files
configlet: add linting rule for practice exercise icon (#421)
The icon rule was not present even though the field was described in the practice exercise spec: https://github.com/exercism/docs/blob/main/building/tracks/practice-exercises.md#file-metaconfigjson
1 parent ff94eef commit 7e4d877

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

building/configlet/lint.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ The `config.json` file should have the following checks:
327327
- The `"test_runner"` value must be a boolean
328328
- The `"representer.version"` key is optional
329329
- The `"representer.version"` value must be an integer >= 1
330+
- The `"icon"` key is optional
331+
- The `"icon"` value must be a kebab-case string²
330332

331333
### Rule: exercises/{concept|practice}/<slug>/.approaches/config.json is valid
332334

0 commit comments

Comments
 (0)