Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝 Format exercise meta via configlet #319

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions exercises/concept/annalyns-infiltration/.meta/config.json
Original file line number Diff line number Diff line change
@@ -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"
}
21 changes: 15 additions & 6 deletions exercises/concept/cars-assemble/.meta/config.json
Original file line number Diff line number Diff line change
@@ -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."
}
21 changes: 15 additions & 6 deletions exercises/concept/elyses-enchantments/.meta/config.json
Original file line number Diff line number Diff line change
@@ -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."
}
25 changes: 18 additions & 7 deletions exercises/concept/lasagna/.meta/config.json
Original file line number Diff line number Diff line change
@@ -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."
}
4 changes: 3 additions & 1 deletion exercises/practice/armstrong-numbers/.meta/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"authors": ["colinleach"],
"authors": [
"colinleach"
],
"files": {
"solution": [
"armstrong-numbers.R"
Expand Down
1 change: 0 additions & 1 deletion exercises/practice/darts/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
8 changes: 6 additions & 2 deletions exercises/practice/leap/.approaches/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
]
}
4 changes: 3 additions & 1 deletion exercises/practice/queen-attack/.meta/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"authors": ["colinleach"],
"authors": [
"colinleach"
],
"files": {
"solution": [
"queen-attack.R"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/raindrops/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
30 changes: 15 additions & 15 deletions exercises/practice/reverse-string/.approaches/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
]
}
]
}
21 changes: 15 additions & 6 deletions exercises/practice/vehicle-purchase/.meta/config.json
Original file line number Diff line number Diff line change
@@ -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"
}