Commit Graph

66 Commits

Author SHA1 Message Date
Ahmed Ismail
edf50fdf80 Add credo to the project and:
- Run mix credo --all to identify possible code optimizations
 - Resolve most of the errors generated by credo such as:
   - Numbers larger than 9999 should be written with underscores: 58_127
   - Modules should have a @moduledoc tag
   - Comparison will always return true
2023-11-10 00:57:21 +05:00
Linus Arver
a7ee27262f be stricter about which files to watch
Things like flycheck-elixir in Emacs can create temporary files in the
same directory as the upstream files that contain the koans, with a
"flycheck_" prefix but still ending in ".ex". This change makes it so
that we skip such files.
2021-07-20 12:06:12 -07:00
Felipe Sere
82b4eb1766 Squash warnings about missing inits 2019-01-05 11:12:39 +00:00
Martino Visintin
b07df7c780 add .formatter.exs + format 2018-05-22 21:46:54 +01:00
Felipe Sere
b9b1a58b89 When checking for koans, make sure we talk about loaded modules first. 2018-02-02 08:22:44 +00:00
Alex Marchenko
02fef95dc6 Fix __info__ for the upcoming Elixir 1.6 2017-11-07 13:17:33 +07:00
Nathan Walker
b32e82b19b Switch over to Elixir option parsing. 2017-07-28 13:03:41 -05:00
Nathan Walker
372d7f70ac Extracted watcher and runner into supervision tree. 2017-07-28 13:00:18 -05:00
Nathan Walker
3c73ea00fa Extract modules module. 2017-07-28 12:58:50 -05:00
Tom Gurion
588018409d Get lessons order from filenames. Fix #196 2017-07-20 10:01:29 +01:00
Eric Anderson
33d0892c7a GenServers swapped lesson position with Protocols 2017-07-19 19:28:57 -05:00
Eric Anderson
62ab2b9688 Added GenServer Koans 2017-07-13 14:39:15 -05:00
membranepotential
2e6dd9aaad Move Sigils lesson down in runner.ex 2017-04-29 17:21:33 +02:00
Mahmut Surekci
317ea5d208 Reposition MapSets koans. Reposition some of the koans to make it clear why MapSets are interesting. 2016-05-27 15:51:45 +01:00
Mahmut Surekci
4f81db44a2 Merge remote-tracking branch 'remotes/upstream/master' into add_map_sets_koans
Conflicts:
	lib/runner.ex
2016-05-27 15:47:49 +01:00
Felipe Seré
c72e60db41 Merge pull request #124 from elixirkoans/protocols
Protocols
2016-05-27 14:09:53 +01:00
Mahmut Surekci
c95f97e968 Merge remote-tracking branch 'remotes/origin/master' into add_map_sets_koans 2016-05-27 13:57:35 +01:00
Mahmut Surekci
5e9e5e3891 Adding new koans for map sets 2016-05-26 02:02:20 +01:00
gemcfadyen
c970ed01dd Protocol examples updated to use Structs 2016-05-25 17:44:42 +01:00
Mahmut Surekci
14858cd497 reposition numbers koans in the runner.ex file 2016-05-25 12:07:40 +01:00
Mahmut Surekci
6e9dc8b328 fix formatting 2016-05-24 17:31:53 +01:00
Mahmut Surekci
cc3232a31f Added very basic koans for integers 2016-05-24 17:29:18 +01:00
kamidev
753550cded Add Sigils to test runner 2016-05-22 19:24:38 +02:00
Felipe Sere
751f849585 Collect all intro printing into display 2016-05-10 23:02:23 +01:00
Felipe Sere
3d79284aab Shows into the first time a module is visted. 2016-05-10 23:02:23 +01:00
Jay Hayes
27b8926aaa Add keyword lists koan to runner 2016-05-10 07:21:13 -05:00
Jay Hayes
440f9bdbc1 Forgot to add the koan to the runner, oops 2016-05-05 17:55:50 -05:00
Felipe Sere
135fc055ca Remove "Considering..." line 2016-04-26 23:06:05 +01:00
Felipe Sere
ab72b0e908 Simpler progressbar and handle --koan=<KOAN> better 2016-04-26 23:06:05 +01:00
Felipe Sere
1625ef7d99 Hook tracker into Execute module via hook 2016-04-26 23:06:05 +01:00
Uku Taht
452aa5d9ee Remove arithmetic koans 2016-04-18 13:31:32 +01:00
Felipe Sere
12a511b309 A few simple koans about agents 2016-04-10 19:07:06 +01:00
Felipe Sere
cc8fa19ce0 Minor cleanup 2016-04-09 23:19:18 +01:00
Felipe Sere
7e03cc37a9 Extract pure executor of koans 2016-04-09 19:16:42 +01:00
Felipe Sere
153a9df599 Move error line detection into runner itself due to processes. 2016-04-09 14:18:39 +01:00
Felipe Sere
84ef28038f Enable running each koan in an isolated process 2016-04-08 22:40:34 +01:00
Uku Taht
04817ff6e8 Ensure that watcher does not try to run a module that is not a koan 2016-04-06 10:09:30 +01:00
Felipe Sere
88ee80b73d Introduce --koan=<name> to run a specific koan module. 2016-04-04 20:57:17 +01:00
Uku Taht
fe0096db49 New order for koans
Equalities
Arithmetic
Strings
Tuples
Lists
Maps
Structs
PatternMatching
Functions
Enums
Processes
Tasks
2016-03-20 19:11:13 +00:00
Felipe Seré
dffd710dc0 Merge pull request #42 from ukutaht/clear-timing
Clear screen before running koans
2016-03-12 22:22:03 +00:00
Uku Taht
236bc55ba8 Clear screen before running koans 2016-03-12 16:37:21 +02:00
Felipe Sere
4eabc8ac61 Reuse run_koan for testing 2016-03-12 12:20:07 +00:00
Felipe Sere
eb1da4b1fc Show how to test koans for Equalities 2016-03-12 12:20:07 +00:00
Felipe Sere
95c620129d Test multiple koans together 2016-03-12 12:20:07 +00:00
Felipe Sere
fdb87b529f Add argument to koan to allow it to be tested 2016-03-12 12:20:07 +00:00
Felipe Sere
dc64bdf186 Get rid of the koan prefix 2016-03-08 20:27:53 +00:00
Felipe Sere
a85e760e54 Force koan order using macros and attributes 2016-03-08 19:58:37 +00:00
Felipe Sere
aa980c09fc Adds koans about tasks 2016-03-08 11:23:06 +00:00
Felipe Sere
c450cc3b19 Koans about processes including infrastructure. 2016-03-08 11:21:41 +00:00
Felipe Seré
f2b4cec409 Merge pull request #32 from ukutaht/pattern_matching
Start basic pattern matching koans
2016-03-08 11:19:56 +00:00