We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there
I've observed a false positive for UtilityFunction when class methods are defined under class_methods block of ActiveSupport::Concern
class_methods
ActiveSupport::Concern
For instance
module SomeModule extend ActiveSupport::Concern class_methods do def some_method(arg1, arg2) return 1 if arg1.something? return 2 if arg2.something_else? 3 end end end
So here I'm getting UtilityFunction warning, but it makes no sense, and by definition it wouldn't warn this method was defined using self.
UtilityFunction
self.
Thanks in advance
The text was updated successfully, but these errors were encountered:
Reproduced in version 'reek', '~> 6.0' and the warning still occurs.
'reek', '~> 6.0'
Can I open a PR to fix the issue?
Sorry, something went wrong.
@mateusluizfb yes, please. Let me know if you need any pointers.
@mvz PR here #1596 :)
No branches or pull requests
Hi there
I've observed a false positive for UtilityFunction when class methods are defined under
class_methods
block ofActiveSupport::Concern
For instance
So here I'm getting
UtilityFunction
warning, but it makes no sense, and by definition it wouldn't warn this method was defined usingself.
Thanks in advance
The text was updated successfully, but these errors were encountered: