-
Notifications
You must be signed in to change notification settings - Fork 281
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
Inconsistent reporting for FeatureEnvy #1337
Comments
I've looked into this and it's super easy to make this consistent. The change doesn't even break any of our tests, which shows that we completely missed this 😆. |
This problem seems to still occur when dealing with private_class_method used within a module.
Goes away if I use self. |
@pardaloupa AIUI, |
Wow, I never realized that... Ruby never complained. Is this is how you are supposed to use it?
If that is right, reek still complains 😞 Edit: all the examples I have seen seem to be using self then passing it over to private_class_method. Maybe is actually required? |
I am really confused on how to use module_function with private class methods. This comment clears things up by using extending self / private combo instead of module_function and private_class_method but goes against the ruby style guideline... Not sure if it is a reek problem now... Any suggestions would be highly appreciated. |
Ok, now that is a valid bug 😆. |
Great thanks for confirming it @mvz then I guess I will keep using module_function and private_class_method and the reek issues will vanish once a bug fix is pushed. Let me know if you need me to open a new issue as this is hard to track 👍 Edit: Same issue occurs with module_function methods |
@pardaloupa yes if you could open a new issue with your example code that would be great! |
The following code
raises
JsonapiExt::Scoping::Include::PathDescriptor#normalize_path refers to 'path' more than self (maybe move it to another class?)
however, if I rewrite it to:
it does not.
The text was updated successfully, but these errors were encountered: