class RuboCop::Cop::Primer::DeprecatedLayoutComponent
Primer::Alpha::Layout.new(foo: :deprecated)
good
Primer::LayoutComponent.new(foo: :deprecated)
bad
This cop ensures that the deprecated ‘Primer::LayoutComponent` isn’t used.
def on_send(node)
def on_send(node) return unless legacy_component?(node) add_offense(node, message: MSG) end