Skip to content

Commit 04418a5

Browse files
Check formatting using Configlet in CI (#2525)
* Format config.json files using configlet * Run `configlet fmt` in Github Actions workflow
1 parent ec8572c commit 04418a5

File tree

21 files changed

+258
-133
lines changed

21 files changed

+258
-133
lines changed

.github/workflows/configlet.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ permissions:
1313
jobs:
1414
configlet:
1515
uses: exercism/github-actions/.github/workflows/configlet.yml@main
16+
with:
17+
lint: true
18+
fmt: true

config.json

Lines changed: 65 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,13 @@
162162
"slug": "cars-assemble",
163163
"name": "Cars, Assemble!",
164164
"uuid": "3f451c6b-04e2-4b08-8bb0-7dcd2ec5b8f4",
165-
"concepts": ["if-else-statements", "numbers"],
166-
"prerequisites": ["booleans"],
165+
"concepts": [
166+
"if-else-statements",
167+
"numbers"
168+
],
169+
"prerequisites": [
170+
"booleans"
171+
],
167172
"status": "active"
168173
},
169174
{
@@ -221,8 +226,14 @@
221226
"slug": "logs-logs-logs",
222227
"name": "Logs, Logs, Logs!",
223228
"uuid": "f33927f7-676f-4045-b1fc-34e719453c61",
224-
"concepts": ["enums"],
225-
"prerequisites": ["strings", "switch-statement", "constructors"]
229+
"concepts": [
230+
"enums"
231+
],
232+
"prerequisites": [
233+
"strings",
234+
"switch-statement",
235+
"constructors"
236+
]
226237
}
227238
],
228239
"practice": [
@@ -336,11 +347,11 @@
336347
"name": "Triangle",
337348
"uuid": "ec268d8e-997b-4553-8c67-8bdfa1ecb888",
338349
"practices": [
339-
"constructors"
350+
"constructors"
340351
],
341352
"prerequisites": [
342353
"numbers",
343-
"if-else-statements"
354+
"if-else-statements"
344355
],
345356
"difficulty": 4
346357
},
@@ -1578,8 +1589,7 @@
15781589
"classes",
15791590
"generic-types"
15801591
],
1581-
"difficulty": 8,
1582-
"topics": []
1592+
"difficulty": 8
15831593
},
15841594
{
15851595
"slug": "rectangles",
@@ -1762,7 +1772,6 @@
17621772
"practices": [],
17631773
"prerequisites": [],
17641774
"difficulty": 1,
1765-
"topics": null,
17661775
"status": "deprecated"
17671776
},
17681777
{
@@ -1772,7 +1781,6 @@
17721781
"practices": [],
17731782
"prerequisites": [],
17741783
"difficulty": 1,
1775-
"topics": null,
17761784
"status": "deprecated"
17771785
},
17781786
{
@@ -1782,7 +1790,6 @@
17821790
"practices": [],
17831791
"prerequisites": [],
17841792
"difficulty": 1,
1785-
"topics": null,
17861793
"status": "deprecated"
17871794
},
17881795
{
@@ -1792,7 +1799,6 @@
17921799
"practices": [],
17931800
"prerequisites": [],
17941801
"difficulty": 1,
1795-
"topics": null,
17961802
"status": "deprecated"
17971803
},
17981804
{
@@ -1802,7 +1808,6 @@
18021808
"practices": [],
18031809
"prerequisites": [],
18041810
"difficulty": 1,
1805-
"topics": null,
18061811
"status": "deprecated"
18071812
},
18081813
{
@@ -1812,7 +1817,6 @@
18121817
"practices": [],
18131818
"prerequisites": [],
18141819
"difficulty": 1,
1815-
"topics": null,
18161820
"status": "deprecated"
18171821
},
18181822
{
@@ -1911,11 +1915,11 @@
19111915
"uuid": "0d6325d1-c0a3-456e-9a92-cea0559e82ed",
19121916
"practices": [],
19131917
"prerequisites": [
1914-
"strings",
1915-
"chars",
1916-
"if-else-statements",
1917-
"lists",
1918-
"for-loops"
1918+
"strings",
1919+
"chars",
1920+
"if-else-statements",
1921+
"lists",
1922+
"for-loops"
19191923
],
19201924
"difficulty": 7
19211925
},
@@ -1931,33 +1935,44 @@
19311935
"for-loops"
19321936
],
19331937
"difficulty": 8
1934-
},
1935-
{
1938+
},
1939+
{
19361940
"slug": "ledger",
19371941
"name": "Ledger",
19381942
"uuid": "6597548e-176d-49c6-be33-789f4c43867a",
19391943
"practices": [],
1940-
"prerequisites": ["strings"],
1944+
"prerequisites": [
1945+
"strings"
1946+
],
19411947
"difficulty": 5
1942-
},
1943-
{
1948+
},
1949+
{
19441950
"slug": "high-scores",
19451951
"name": "High Scores",
19461952
"uuid": "574d6323-5ff5-4019-9ebe-0067daafba13",
1947-
"practices": ["lists", "classes", "for-loops"],
1948-
"prerequisites" :["lists"],
1953+
"practices": [
1954+
"lists",
1955+
"classes",
1956+
"for-loops"
1957+
],
1958+
"prerequisites": [
1959+
"lists"
1960+
],
19491961
"difficulty": 2
19501962
},
19511963
{
19521964
"slug": "square-root",
19531965
"name": "Square Root",
19541966
"uuid": "61886554-ec84-422a-bbf9-aeee37c45bb6",
1955-
"practices": ["numbers"],
1956-
"prerequisites": ["numbers"],
1967+
"practices": [
1968+
"numbers"
1969+
],
1970+
"prerequisites": [
1971+
"numbers"
1972+
],
19571973
"difficulty": 5
19581974
}
1959-
],
1960-
"foregone": []
1975+
]
19611976
},
19621977
"concepts": [
19631978
{
@@ -2058,51 +2073,51 @@
20582073
],
20592074
"key_features": [
20602075
{
2061-
"icon": "evolving",
20622076
"title": "Modern",
2063-
"content": "Java is a modern, fast-evolving language with releases every 6 months."
2077+
"content": "Java is a modern, fast-evolving language with releases every 6 months.",
2078+
"icon": "evolving"
20642079
},
20652080
{
2066-
"icon": "statically-typed",
20672081
"title": "Statically-typed",
2068-
"content": "Every expression has a type known at compile time."
2082+
"content": "Every expression has a type known at compile time.",
2083+
"icon": "statically-typed"
20692084
},
20702085
{
2071-
"icon": "multi-paradigm",
20722086
"title": "Multi-paradigm",
2073-
"content": "Java is primarily an object-oriented language, but has many functional features introduced in v1.8."
2087+
"content": "Java is primarily an object-oriented language, but has many functional features introduced in v1.8.",
2088+
"icon": "multi-paradigm"
20742089
},
20752090
{
2076-
"icon": "general-purpose",
20772091
"title": "General purpose",
2078-
"content": "Java is used for a variety of workloads like web, cloud, mobile and game applications."
2092+
"content": "Java is used for a variety of workloads like web, cloud, mobile and game applications.",
2093+
"icon": "general-purpose"
20792094
},
20802095
{
2081-
"icon": "portable",
20822096
"title": "Portable",
2083-
"content": "Java was designed to be cross-platform with the slogan \"Write once, run anywhere\"."
2097+
"content": "Java was designed to be cross-platform with the slogan \"Write once, run anywhere\".",
2098+
"icon": "portable"
20842099
},
20852100
{
2086-
"icon": "garbage-collected",
20872101
"title": "Garbage Collection",
2088-
"content": "Java programs perform automatic memory management for their lifecycles."
2102+
"content": "Java programs perform automatic memory management for their lifecycles.",
2103+
"icon": "garbage-collected"
20892104
}
20902105
],
20912106
"tags": [
2107+
"execution_mode/compiled",
20922108
"paradigm/functional",
20932109
"paradigm/imperative",
20942110
"paradigm/object_oriented",
2095-
"typing/static",
2096-
"execution_mode/compiled",
2097-
"platform/windows",
2098-
"platform/mac",
2099-
"platform/linux",
21002111
"platform/android",
2112+
"platform/linux",
2113+
"platform/mac",
2114+
"platform/windows",
21012115
"runtime/jvm",
2116+
"typing/static",
2117+
"used_for/artificial_intelligence",
21022118
"used_for/backends",
21032119
"used_for/cross_platform_development",
2104-
"used_for/mobile",
2105-
"used_for/artificial_intelligence",
2106-
"used_for/games"
2120+
"used_for/games",
2121+
"used_for/mobile"
21072122
]
21082123
}
Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
{
2-
"authors": ["sanderploegsma"],
3-
"contributors": [],
2+
"authors": [
3+
"sanderploegsma"
4+
],
45
"files": {
5-
"solution": ["src/main/java/LogLevel.java", "src/main/java/LogLine.java"],
6-
"test": ["src/test/java/LogsLogsLogsTest.java"],
6+
"solution": [
7+
"src/main/java/LogLevel.java",
8+
"src/main/java/LogLine.java"
9+
],
10+
"test": [
11+
"src/test/java/LogsLogsLogsTest.java"
12+
],
713
"exemplar": [
814
".meta/src/reference/java/LogLevel.java",
915
".meta/src/reference/java/LogLine.java"
1016
],
11-
"invalidator": ["build.gradle"]
17+
"invalidator": [
18+
"build.gradle"
19+
]
1220
},
13-
"forked_from": ["csharp/logs-logs-logs"],
21+
"forked_from": [
22+
"csharp/logs-logs-logs"
23+
],
1424
"blurb": "Learn about enums by parsing logs."
1525
}
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
{
22
"introduction": {
3-
"authors": ["bobahop"],
4-
"contributors": []
3+
"authors": [
4+
"bobahop"
5+
]
56
},
67
"approaches": [
78
{
89
"uuid": "323eb230-7f27-4301-88ea-19c39d3eb5b6",
910
"slug": "if-statements",
1011
"title": "if statements",
1112
"blurb": "Use if statements to return the answer.",
12-
"authors": ["bobahop"]
13+
"authors": [
14+
"bobahop"
15+
]
1316
},
1417
{
1518
"uuid": "11baf0c0-a596-4495-8c25-521c023c3103",
1619
"slug": "answer-array",
1720
"title": "Answer array",
1821
"blurb": "Index into an array to return the answer.",
19-
"authors": ["bobahop"]
22+
"authors": [
23+
"bobahop"
24+
]
2025
}
2126
]
2227
}
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
{
22
"introduction": {
3-
"authors": ["bobahop"],
4-
"contributors": []
3+
"authors": [
4+
"bobahop"
5+
]
56
},
67
"approaches": [
78
{
89
"uuid": "c7339316-ad69-4885-8e61-2dff1531b05c",
910
"slug": "while-loop",
1011
"title": "while loop",
1112
"blurb": "Use a while loop to return the answer.",
12-
"authors": ["bobahop"]
13+
"authors": [
14+
"bobahop"
15+
]
1316
},
1417
{
1518
"uuid": "9e6ec107-1273-4e0d-a1c8-cc09130768ee",
1619
"slug": "intstream-iterate",
1720
"title": "IntStream.iterate()",
1821
"blurb": "Use IntStream.iterate() to return the answer.",
19-
"authors": ["bobahop"]
22+
"authors": [
23+
"bobahop"
24+
]
2025
}
2126
]
2227
}
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
{
22
"introduction": {
3-
"authors": ["bobahop"],
4-
"contributors": []
3+
"authors": [
4+
"bobahop"
5+
]
56
},
67
"approaches": [
78
{
89
"uuid": "1bfb4201-fa1e-42d6-8922-f2dbe6da2f5e",
910
"slug": "if-statements",
1011
"title": "if statements",
1112
"blurb": "Use if statements to return the answer.",
12-
"authors": ["bobahop"]
13+
"authors": [
14+
"bobahop"
15+
]
1316
},
1417
{
1518
"uuid": "5345154d-bb5e-4e08-abb6-f735d5d796d2",
1619
"slug": "doublepredicate",
1720
"title": "DoublePredicate",
1821
"blurb": "Use a DoublePredicate to return the answer.",
19-
"authors": ["bobahop"]
22+
"authors": [
23+
"bobahop"
24+
]
2025
}
2126
]
2227
}

0 commit comments

Comments
 (0)