-
Notifications
You must be signed in to change notification settings - Fork 87
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
FUNCTION_NAME macro treated as variable #505
Comments
I had the same issue. (embedded macros) The quick workaround was to add the following style rule to my
|
@aboroska this isn't the only macro that would fail. TBH I think that any predefined macro will also fail as |
@igaray it is worth mentioning that it happens me only if I run Elvis installed via Mix, when I am using Elvis via Rebar3 then everything works as expected. So maybe issue is with dependency resolution? I will try to investigate further. |
Ok, it fails with |
There's a new version of elvis_core that should solve this issue and be able to detect macros, regardless of their names and usage. |
@jfacorro you mean |
@hauleth Yes, sorry. It is the current |
@hauleth There is now a new |
I am trying to write Mix task for Elvis unfortunately when some macro tries to use other macro twice it do not expand them and it results in treating
FUNCTION_NAME
as variable instead of macro, which in the end makesvariable_naming_convention
fails.The text was updated successfully, but these errors were encountered: