Commit Graph

10 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
Shashwat Ganesh
8e8efd8def Move from System.stacktrace to __STACKTRACE__ 2020-06-04 22:52:32 +05:30
Martino Visintin
b07df7c780 add .formatter.exs + format 2018-05-22 21:46:54 +01:00
Jay Hayes
c6f2738fc7 Refactor error expansion to locate errors in koan module
The previous strategy wasn't robust enough to detect typos in function
calls. For example, if you misremembered String.duplicate/2 as
String.repeat/2 the koan runner would hang and have to be restarted.
This is because the stacktrace for an error like that doesn't have line
numbers. To avoid the problem, we detect the first pieces of the
stracktrace that is in the koan module. I can't decide if that's a
perfect solution, but it seemed to work in my testing. Hoping to get
other's feedback.
2016-06-11 08:43:37 -05:00
Felipe Sere
3d79284aab Shows into the first time a module is visted. 2016-05-10 23:02:23 +01:00
Felipe Sere
eaf55ba897 Silence warning about unused paramters 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
2aec04f9cc Ignore random messages from the file watcher 2016-04-20 15:01:40 +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