Hi there
I've observed a false positive for UtilityFunction when class methods are defined under class_methods block of 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.
Thanks in advance