lint(track_config): add more checks of exercise concepts #412
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With this commit,
configlet lint
now checks that a track-levelconfig.json
file follows the below rules:exercises.concept[].concepts
values must not be in any otherconcept exercise's
concepts
propertyexercises.concept[].concepts
values must match theconcepts.slug
property of one of the conceptsexercises.concept[].prerequisites
values must match theconcepts.slug
property of one of the conceptsThese rules currently apply to user-facing Concept Exercises only, which
are those with
status
ofactive
orbeta
.Refs: #386
Ping @iHiD - would you like another fast release for this one? Please sanity-check the below diff.
At the time of writing (
2021-09-05T18:14:00Z
), this PR produces the below diff to the output ofconfiglet lint
, per track:go
https://github.com/exercism/go/blob/a167c7853aed/config.json
java
https://github.com/exercism/java/blob/30ff7755c73e/config.json
rust
https://github.com/exercism/rust/blob/60147eb56efd/config.json
swift
https://github.com/exercism/swift/blob/e476a4a070dd/config.json