You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test/models/comm_engine/communication_settings/simple_communication_setting_test.rb:6:7: W: Lint/NestedMethodDefinition: Method definitions must not be nested. Use lambda instead. (https://github.com/bbatsov/ruby-style-guide#no-nested-methods)
def self.template
^^^^^^^^^^^^^^^^^
It appears that there should be a test for this: does not register offense for nested definition inside Class.new, but maybe the passed in superclass is confusing it?
I have the following method that dynamically creates a subclass
which gets flagged with the following offense:
It appears that there should be a test for this:
does not register offense for nested definition inside Class.new
, but maybe the passed in superclass is confusing it?RuboCop version
The text was updated successfully, but these errors were encountered: