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
Jay Hayes
5d4f97a854
Make code loading compatible and deprecation free on old and new elixirs
2019-01-04 08:57:15 -06:00
Jay Hayes
8c0c314e78
Replace deprecated call to Code.load_file/1
...
This function was replaced by Code.compile_file/1 and is deprecated with
planned removal in 1.9.
See: https://github.com/elixir-lang/elixir/pull/7201
2018-12-06 07:50:32 -06:00
Robert Lowe
fc82479489
Fixes Watcher/Autorunner for some editors (ex: TextMate)
...
Fixes Watcher/Autorunner for some editors (ex: TextMate)
2018-12-02 20:55:55 -05:00
Martino Visintin
b07df7c780
add .formatter.exs + format
2018-05-22 21:46:54 +01:00
Jeff Gandt
42f3c93640
Don't pass args to Watcher
2017-12-13 09:43:08 -05:00
Jeff Gandt
3742caf1b4
Convert from the retired ExFSWatch to FileSystem
...
Initial working commit. Use the new GenServer only API.
2017-12-13 09:39:54 -05:00
Nathan Walker
372d7f70ac
Extracted watcher and runner into supervision tree.
2017-07-28 13:00:18 -05:00
Ian Davies
5556c6bc94
Normalize the file before calling reload.
...
Fixing: https://github.com/elixirkoans/elixir-koans/issues/138
By normalizing first we remove the IntelliJ specific suffix if it is
present which allows the ".ex" extension to correctly match IntelliJ
edited files.
2017-01-18 22:00:02 -08:00
Benjamin Chodoroff
87b5bb263c
only run elixir code
...
ignore, for example, editor swapfiles
2016-07-05 16:04:07 -04:00
Felipe Sere
2f3f117e4a
Strip off IntelliJ specific extension from reloaded files.
2016-05-04 21:51:50 +01:00
Jay Hayes
93c41d6ced
Move explicit exit out of display function
2016-04-26 18:10:16 -05:00
Jay Hayes
6ae1cae4b8
Congratulate when koans are complete
2016-04-26 17:35:31 -05:00
Felipe Sere
ab72b0e908
Simpler progressbar and handle --koan=<KOAN> better
2016-04-26 23:06:05 +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
Uku Taht
3990e7f7e5
Arrange public/private sections in Display
2016-03-09 16:40:35 +02:00
Felipe Sere
99a561a6dc
Basic Koans about structs
2016-03-07 15:59:57 +02:00
Uku Taht
933e11acb9
Intercept and print compile errors in a nicer way.
2016-01-13 13:33:57 +00:00
Uku Taht
94ff8b63b4
Add basic file watcher to run koans
2015-12-17 01:03:05 +00:00
Uku Taht
ae6b5a7f19
Initial commit
2015-12-15 17:53:27 +00:00