-
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
Think Bin's element with size is a module #172
Comments
@pvalsecc The bug is supposed to be fixed in the branch jfacorro.172.macro.in.binary. Could you please confirm this is working for you? git clone https://github.com/inaka/elvis
git checkout jfacorro.172.macro.in.binary
cd elvis
make
sudo make install
cd /path/to/project
elvis rock Thanks! |
[Closes #172] Check node type is 'remote'.
@pvalsecc The change is now in master if you find that it is still not working for you please reopen this issue. Thanks! |
@jfacorro Sorry, I didn't see your question. Didn't get the email for some reason. No, your patch is really not solving my issue. In this example:
|
Sorry, I don't have permission to reopen an issue. |
@pvalsecc That sucks 😞. Would it be possible for you to paste the whole function where the binary is used? It's a long shot but maybe the rule is not taking into account something regarding the context where this expression appears. |
For example, look at mqtt_protocol.erl line 77. |
@pvalsecc Is it possible that the elvis version you have currently installed is outdated? I just ran the version in |
The problem also arises in the case where the size is a macro. This is interpreted as a macro as function: Value:?VALUE_SIZE = Binary |
@pvalsecc I think @dvaergiller addressed the problem for good. The expressions here are not considered as failures so we are closing this issue. Please let us know if you find any problems. |
@jfacorro , look at the elvis.conf file in the erlangmqtt root, I disabled macro_module_names because of this bug. |
@pvalsecc Oh, I see. I didn't check the |
Here is some code:
KEEP_ALIVE is defined like that:
Elvis is a bit lost:
Obviously, in the context of a Bin, KEEP_ALIVE is not used as a module name...
The text was updated successfully, but these errors were encountered: