Sha256: 1c9deb440f3e9b9f8dcec5a152f66eb5359257bcff9beef743b9592602dcbcd0
Contents?: true
Size: 461 Bytes
Versions: 48
Compression:
Stored size: 461 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
48 entries across 37 versions & 5 rubygems