class RuboCop::Cop::Style::ColonMethodCall
def on_send(node)
def on_send(node) # ignore Java interop code like Java::int return if JAVA_TYPE_NODES.include?(node) receiver, method_name, *_args = *node # discard methods with nil receivers and op methods(like []) return unless receiver && node.loc.dot && node.loc.dot.is?('::') return if allowed_name(method_name.to_s) add_offense(node, :dot) end