Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint(validators): support checking that files exist (#314)
The `.meta/config.json` file of a Concept Exercise or a Practice Exercise contains a `files` property, which contains the (relative) paths to each file of the exercise. This commit adds a `hasArrayOfFiles` procedure that: 1. Checks if the `files` value is a valid array of strings using `hasArrayOfStrings`. 2. Prepends each string value with the exercise directory, and produces an error message if a file does not exist at that path. Co-authored-by: ee7 <[email protected]>
- Loading branch information