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

Remove obsolete problems key #171

Merged
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
69 changes: 0 additions & 69 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,75 +3,6 @@
"language": "Scala",
"repository": "https://github.com/exercism/xscala",
"active": true,
"problems": [
"hello-world",
"bob",
"sum-of-multiples",
"hamming",
"word-count",
"pangram",
"anagram",
"nucleotide-count",
"phone-number",
"grade-school",
"robot-name",
"leap",
"etl",
"meetup",
"space-age",
"grains",
"gigasecond",
"scrabble-score",
"difference-of-squares",
"accumulate",
"sublist",
"rna-transcription",
"triangle",
"roman-numerals",
"prime-factors",
"raindrops",
"allergies",
"atbash-cipher",
"all-your-base",
"bank-account",
"crypto-square",
"kindergarten-garden",
"robot-simulator",
"bracket-push",
"queen-attack",
"binary-search-tree",
"largest-series-product",
"luhn",
"clock",
"matrix",
"house",
"zebra-puzzle",
"minesweeper",
"ocr-numbers",
"wordy",
"food-chain",
"linked-list",
"custom-set",
"nth-prime",
"palindrome-products",
"pascals-triangle",
"pig-latin",
"pythagorean-triplet",
"saddle-points",
"say",
"secret-handshake",
"series",
"sieve",
"simple-cipher",
"change",
"connect",
"parallel-letter-frequency",
"sgf-parsing",
"acronym",
"zipper",
"forth",
"lens-person"
],
"exercises": [
{
"slug": "hello-world",
Expand Down
6 changes: 3 additions & 3 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ object XScalaBuild extends Build {
throw new IllegalArgumentException(s"Could not parse $configJsonFile as JSON")
}
configObj
.get("problems")
.get("exercises")
.map(_.asInstanceOf[JSONArray].list)
.getOrElse {
throw new IllegalArgumentException(s"Could not find array 'problems' in $configJsonFile")
throw new IllegalArgumentException(s"Could not find array 'exercises' in $configJsonFile")
}
.collect { case problem: String => problem }
.collect { case problem: JSONObject => problem.obj("slug").toString }
}
}