Added erlang ast test in `captains-log`
As described in issue #340, I modified the file by attempting to perform the check with the AST.
I am uncertain if this is correct, but the tests I added also work with the examples I created.
As soon as I get the go-ahead, I'll also make a PR on website-copy. I hope this has been helpful. 😄
Thank you for the PR! Before I go into a detailed review, could I ask you to address two things:
- I don't understand why all the files you are modifying are completely redefined. As far as I could tell, you are only modifying a few lines, not the whole files. Could you figure it out and fix it? It would really help with the review and the git history.
- The tests in
test_dataare used as smoke tests for the CI, we don't typically add new ones in there unless we have a good reason. The tests you added intest/elixir_analyzer/test_suite/captains_log_test.exsshould be enough.
It should be fixed now. Every time Windows messes up the formatting at the end of the line.
It has been open for 5 months. Can someone take a look?
Hi there! We did completely forget about your PR, sorry about that 😞 I'm writing this comment to confirm that both @jiegillet and I saw your recent reminder and we'll looking for some free time to re-review the PR soon.
I should have sorted everything out. My only concern with the first approach is that if a user makes a mistake, both the comments from :io_lib and :erlang will be displayed, I suppose.