From 02a8824614149200895943c37cec7d938736c681 Mon Sep 17 00:00:00 2001 From: Jon Calder Date: Fri, 2 Feb 2024 04:26:04 +0200 Subject: [PATCH] :memo: Format exercise meta via configlet (#319) --- .../annalyns-infiltration/.meta/config.json | 24 +++++++++++---- .../concept/cars-assemble/.meta/config.json | 21 +++++++++---- .../elyses-enchantments/.meta/config.json | 21 +++++++++---- exercises/concept/lasagna/.meta/config.json | 25 +++++++++++----- .../armstrong-numbers/.meta/config.json | 4 ++- exercises/practice/darts/.meta/config.json | 1 - .../practice/leap/.approaches/config.json | 8 +++-- .../practice/queen-attack/.meta/config.json | 4 ++- .../practice/raindrops/.meta/config.json | 2 +- .../reverse-string/.approaches/config.json | 30 +++++++++---------- .../vehicle-purchase/.meta/config.json | 21 +++++++++---- 11 files changed, 109 insertions(+), 52 deletions(-) diff --git a/exercises/concept/annalyns-infiltration/.meta/config.json b/exercises/concept/annalyns-infiltration/.meta/config.json index a5bcb8ad..8f03eda8 100644 --- a/exercises/concept/annalyns-infiltration/.meta/config.json +++ b/exercises/concept/annalyns-infiltration/.meta/config.json @@ -1,11 +1,23 @@ { - "authors": ["colinleach"], - "contributors": ["jonmcalder"], + "authors": [ + "colinleach" + ], + "contributors": [ + "jonmcalder" + ], "files": { - "solution": ["annalyns-infiltration.R"], - "test": ["test_annalyns-infiltration.R"], - "exemplar": [".meta/exemplar.R"] + "solution": [ + "annalyns-infiltration.R" + ], + "test": [ + "test_annalyns-infiltration.R" + ], + "exemplar": [ + ".meta/exemplar.R" + ] }, - "forked_from": ["Csharp/annalyns-infiltration"], + "forked_from": [ + "Csharp/annalyns-infiltration" + ], "blurb": "Learn about booleans by contributing to a strategy game" } diff --git a/exercises/concept/cars-assemble/.meta/config.json b/exercises/concept/cars-assemble/.meta/config.json index 106a2d4f..99f7249f 100644 --- a/exercises/concept/cars-assemble/.meta/config.json +++ b/exercises/concept/cars-assemble/.meta/config.json @@ -1,11 +1,20 @@ { - "authors": ["colinleach"], - "contributors": [], + "authors": [ + "colinleach" + ], "files": { - "solution": ["cars-assemble.R"], - "test": ["test_cars-assemble.R"], - "exemplar": [".meta/exemplar.R"] + "solution": [ + "cars-assemble.R" + ], + "test": [ + "test_cars-assemble.R" + ], + "exemplar": [ + ".meta/exemplar.R" + ] }, - "forked_from": ["Csharp/cars-assemble"], + "forked_from": [ + "Csharp/cars-assemble" + ], "blurb": "Learn about conditionals by analyzing the production of an assembly line." } diff --git a/exercises/concept/elyses-enchantments/.meta/config.json b/exercises/concept/elyses-enchantments/.meta/config.json index 7bb08b46..6813e11c 100644 --- a/exercises/concept/elyses-enchantments/.meta/config.json +++ b/exercises/concept/elyses-enchantments/.meta/config.json @@ -1,11 +1,20 @@ { - "authors": ["colinleach"], - "contributors": [], + "authors": [ + "colinleach" + ], "files": { - "solution": ["elyses-enchantments.R"], - "test": ["test_elyses-enchantments.R"], - "exemplar": [".meta/exemplar.R"] + "solution": [ + "elyses-enchantments.R" + ], + "test": [ + "test_elyses-enchantments.R" + ], + "exemplar": [ + ".meta/exemplar.R" + ] }, - "forked_from": ["javascript/elyses-enchantments"], + "forked_from": [ + "javascript/elyses-enchantments" + ], "blurb": "Help Elyse with her Enchantments and learn about vectors in the process." } diff --git a/exercises/concept/lasagna/.meta/config.json b/exercises/concept/lasagna/.meta/config.json index 4fa6c521..2e37d6d6 100644 --- a/exercises/concept/lasagna/.meta/config.json +++ b/exercises/concept/lasagna/.meta/config.json @@ -1,11 +1,22 @@ { - "authors": ["jonmcalder"], - "blurb": "Learn the basics of R by following a lasagna recipe.", - "icon": "lasagna", + "authors": [ + "jonmcalder" + ], "files": { - "solution": ["lasagna.R"], - "test": ["test_lasagna.R"], - "exemplar": [".meta/examplar.R"] + "solution": [ + "lasagna.R" + ], + "test": [ + "test_lasagna.R" + ], + "exemplar": [ + ".meta/examplar.R" + ] }, - "forked_from": ["csharp/basics", "ruby/basics"] + "forked_from": [ + "csharp/basics", + "ruby/basics" + ], + "icon": "lasagna", + "blurb": "Learn the basics of R by following a lasagna recipe." } diff --git a/exercises/practice/armstrong-numbers/.meta/config.json b/exercises/practice/armstrong-numbers/.meta/config.json index bd38b888..932a05e6 100644 --- a/exercises/practice/armstrong-numbers/.meta/config.json +++ b/exercises/practice/armstrong-numbers/.meta/config.json @@ -1,5 +1,7 @@ { - "authors": ["colinleach"], + "authors": [ + "colinleach" + ], "files": { "solution": [ "armstrong-numbers.R" diff --git a/exercises/practice/darts/.meta/config.json b/exercises/practice/darts/.meta/config.json index 801ef798..325580ec 100644 --- a/exercises/practice/darts/.meta/config.json +++ b/exercises/practice/darts/.meta/config.json @@ -13,7 +13,6 @@ ".meta/example.R" ] }, - "title": "Darts", "blurb": "Write a function that returns the earned points in a single toss of a Darts game.", "source": "Inspired by an exercise created by a professor Della Paolera in Argentina" } diff --git a/exercises/practice/leap/.approaches/config.json b/exercises/practice/leap/.approaches/config.json index 3c0e1250..a46bcbfa 100644 --- a/exercises/practice/leap/.approaches/config.json +++ b/exercises/practice/leap/.approaches/config.json @@ -10,14 +10,18 @@ "slug": "boolean-chain", "title": "Boolean chain", "blurb": "Use a chain of boolean expressions.", - "authors": ["jonmcalder"] + "authors": [ + "jonmcalder" + ] }, { "uuid": "aa5cd568-60e7-4d9d-9573-752ecdbb92f7", "slug": "conditional-expression", "title": "Conditional expression", "blurb": "Use an if / else statement.", - "authors": ["jonmcalder"] + "authors": [ + "jonmcalder" + ] } ] } diff --git a/exercises/practice/queen-attack/.meta/config.json b/exercises/practice/queen-attack/.meta/config.json index 5bc29e95..16079e17 100644 --- a/exercises/practice/queen-attack/.meta/config.json +++ b/exercises/practice/queen-attack/.meta/config.json @@ -1,5 +1,7 @@ { - "authors": ["colinleach"], + "authors": [ + "colinleach" + ], "files": { "solution": [ "queen-attack.R" diff --git a/exercises/practice/raindrops/.meta/config.json b/exercises/practice/raindrops/.meta/config.json index 7e5d556e..df07e35b 100644 --- a/exercises/practice/raindrops/.meta/config.json +++ b/exercises/practice/raindrops/.meta/config.json @@ -18,7 +18,7 @@ ".meta/example.R" ] }, - "blurb": "Convert a number to a string, the content of which depends on the number's factors.", + "blurb": "Convert a number into its corresponding raindrop sounds - Pling, Plang and Plong.", "source": "A variation on FizzBuzz, a famous technical interview question that is intended to weed out potential candidates. That question is itself derived from Fizz Buzz, a popular children's game for teaching division.", "source_url": "https://en.wikipedia.org/wiki/Fizz_buzz" } diff --git a/exercises/practice/reverse-string/.approaches/config.json b/exercises/practice/reverse-string/.approaches/config.json index d490a026..7fa0317a 100644 --- a/exercises/practice/reverse-string/.approaches/config.json +++ b/exercises/practice/reverse-string/.approaches/config.json @@ -7,54 +7,54 @@ }, "approaches": [ { - "slug": "split-reverse", "uuid": "b5a796ed-874e-4998-af8e-9757e46e5d77", + "slug": "split-reverse", "title": "Split, reverse", + "blurb": "Use an intermediate vector of characters.", "authors": [ "jonmcalder", "colinleach" - ], - "blurb": "Use an intermediate vector of characters." + ] }, { - "slug": "utf8-reverse", "uuid": "223c062a-9070-4136-8aca-4adba0335898", + "slug": "utf8-reverse", "title": "UTF-8 reverse", + "blurb": "Use an intermediate vector of UTF-8 codes.", "authors": [ "jonmcalder", "colinleach" - ], - "blurb": "Use an intermediate vector of UTF-8 codes." + ] }, { - "slug": "native-pipes", "uuid": "f5d765b1-f75d-47a0-8c51-2e6ba58fca9f", + "slug": "native-pipes", "title": "Native pipes", + "blurb": "Use a fuctional approach with native pipes.", "authors": [ "jonmcalder", "colinleach" - ], - "blurb": "Use a fuctional approach with native pipes." + ] }, { - "slug": "vector-operations", "uuid": "e8631640-4a0e-4993-8529-6685fe1ef98e", + "slug": "vector-operations", "title": "Vectorised solution", + "blurb": "Use code that will work on vectors of strings.", "authors": [ "jonmcalder", "colinleach" - ], - "blurb": "Use code that will work on vectors of strings." + ] }, { - "slug": "stri-reverse", "uuid": "15b4c8c7-51fd-4251-8305-401b006095a8", + "slug": "stri-reverse", "title": "stringi reverse", + "blurb": "Use the built-in stri_reverse() function from the stringi library.", "authors": [ "jonmcalder", "colinleach" - ], - "blurb": "Use the built-in stri_reverse() function from the stringi library." + ] } ] } diff --git a/exercises/practice/vehicle-purchase/.meta/config.json b/exercises/practice/vehicle-purchase/.meta/config.json index 6db80171..b3e61aec 100644 --- a/exercises/practice/vehicle-purchase/.meta/config.json +++ b/exercises/practice/vehicle-purchase/.meta/config.json @@ -1,11 +1,20 @@ { - "authors": ["colinleach"], - "contributors": ["jonmcalder"], + "authors": [ + "colinleach" + ], + "contributors": [ + "jonmcalder" + ], "files": { - "solution": ["vehicle-purchase.R"], - "test": ["test_vehicle-purchase.R"], - "example": [".meta/example.R"] + "solution": [ + "vehicle-purchase.R" + ], + "test": [ + "test_vehicle-purchase.R" + ], + "example": [ + ".meta/example.R" + ] }, - "forked_from": ["javascript/vehicle-purchase"], "blurb": "Learn about comparison and conditionals while preparing for your next vehicle purchase" }