diff --git a/src/lint/track_config.nim b/src/lint/track_config.nim index a696d7f86..2acf5fe4e 100644 --- a/src/lint/track_config.nim +++ b/src/lint/track_config.nim @@ -79,6 +79,12 @@ proc isValidPracticeExercise(data: JsonNode; context: string; ] result = allTrue(checks) + if result and data["slug"].getStr() == "hello-world" and data.hasKey("status"): + let statusKey = data["status"].getStr() + if not (statusKey == "active"): + result.setFalseAndPrint(&"The value of {format(context)}.status is `{format(statusKey)}`, but it must be `active` for the hello-world exercise", + path) + proc hasValidExercises(data: JsonNode; path: Path): bool = const k = "exercises" if hasObject(data, k, path):