-
Notifications
You must be signed in to change notification settings - Fork 16
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
[#26] Drop aleppo and use a forked epp_dodger #31
Conversation
After adding a test that tries to parse all OTP .erl files, there were some issues found with some modules. These issues are addressed by either ignoring unparsable code and/or replacing it with dummy values.
I think you need to push changes to rebar.lock as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to push changes to rebar.lock as well.
@elbrujohalcon Yes, I missed that, I will add it to the PR. I also need to remove |
The elvis check in |
The latest elvis is using a new version of katana_code, which has replaced the pre-processor handling, see: inaka/katana-code#31 This has changed the behavior of elvis to also check code defined in TEST scope.
The latest elvis is using a new version of katana_code, which has replaced the pre-processor handling, see: inaka/katana-code#31 This has changed the behavior of elvis to also check code defined in TEST scope.
A lot of the issues around macros have been caused by the fact that we are using the aleppo library to reproduce the behaviour of the erlang pre-processor but applied to text instead of files.
Recent work on erlang-ls has shown that using the
epp_dodger
module, could be a more robust approach. Sadly this module doesn't provide a lot of configuration of customization throught its API, therefore this PRs "forks" it so that the parsed forms include the text in their nodes.I ran elvis_core's tests with these changes and I have a branch where all tests pass with minimal changes.
Fixes #26.