When I recently PR’d some approaches docs with performance data, configlet lint
complained about the lack of .articles/performance/snippet.md
. Apparently this now needs to exist and can’t be empty. This is entirely separate from the snippet.txt
file for each approach, containing bits of code.
Is this something new? I’ve not come across it before, and the snippet.md
isn’t mentioned in the docs (as far as I can see).
No this isn’t new, all articles must have a snippet.md
file. There is documentation, but it might be where you didn’t expect it: Practice Exercises | Exercism's Docs I’ll update the docs to link to that.
Thanks for that. It seems to be a confusion (partly mine, partly not) about whether this is optional or required.
.articles/<article-slug>/snippet.md
: snippet showcasing the article (optional)
The Practice Exercises doc says optional, it’s now required and configlet enforces this requirement.
No worries, I’ll add them in future.
1 Like