提交 a1cad13b 编写于 作者: J Jacopo

Fixes rubocop chain ordinary method after safe navigation operator

上级 c6bddeac
......@@ -48,12 +48,15 @@ module RuboCop
private
def extends_activesupport_concern?(node)
container_module(node.parent)&.descendants.any? do |descendant|
container_module = container_module_of(node.parent)
return false unless container_module
container_module.descendants.any? do |descendant|
extend_activesupport_concern?(descendant)
end
end
def container_module(node)
def container_module_of(node)
node = node.parent until node.type == :module
node
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册