Sha256: 07eadcdc6822eaa9d2117f514c5315e6f1ace428c793715c009fe9c7d4aed0a1
Contents?: true
Size: 460 Bytes
Versions: 13
Compression:
Stored size: 460 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop # Common code for empty parameter cops. module EmptyParameter extend NodePattern::Macros private def_node_matcher :empty_arguments?, <<-PATTERN (block _ $(args) _) PATTERN def check(node) empty_arguments?(node) do |args| return if args.empty_and_without_delimiters? add_offense(args) end end end end end
Version data entries
13 entries across 13 versions & 2 rubygems