-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint: check
files
key in track-level config (#435)
With this commit, `configlet lint` now checks that a track-level `config.json` file follows the below rules: - The `files` key is optional - The `files` value must be an object - The `files.solution` key is optional - The `files.solution` value must be an array - The `files.solution` values must be valid patterns - The `files.solution` values must not have duplicates - The `files.test` key is optional - The `files.test` value must be an array - The `files.test` values must be valid patterns - The `files.test` values must not have duplicates - The `files.example` key is optional - The `files.example` value must be an array - The `files.example` values must be valid patterns - The `files.example` values must not have duplicates - The `files.exemplar` key is optional - The `files.exemplar` value must be an array - The `files.exemplar` values must be valid patterns - The `files.exemplar` values must not have duplicates - The `files.editor` key is optional - The `files.editor` value must be an array - The `files.editor` values must be valid patterns - The `files.editor` values must not have duplicates - Patterns can only be listed in either the `files.solution`, `files.test`, `files.example`, `files.exemplar` or `files.editor` array (no overlap) We define a "valid pattern" as a non-blank string that specifies a location of a file used in an exercise, relative to the exercise's directory. A pattern may use one of the following placeholders: - `%{kebab_slug}`: the `kebab-case` exercise slug (e.g. `bit-manipulation`) - `%{snake_slug}`: the `snake_case` exercise slug (e.g. `bit_manipulation`) - `%{camel_slug}`: the `camelCase` exercise slug (e.g. `bitManipulation`) - `%{pascal_slug}`: the `PascalCase` exercise slug (e.g. `BitManipulation`) Co-authored-by: ee7 <45465154+ee7@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
189 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters