lib/rubocop/cop/chef/redundant/property_splat_regex.rb in cookstyle-6.19.5 vs lib/rubocop/cop/chef/redundant/property_splat_regex.rb in cookstyle-6.19.11

- old
+ new

@@ -34,9 +34,10 @@ class PropertySplatRegex < Base include RangeHelp extend AutoCorrector MSG = 'There is no need to validate the input of properties in resources using a regex value that will always pass.' + RESTRICT_ON_SEND = [:property, :attribute].freeze def_node_matcher :property_with_regex_splat?, <<-PATTERN (send nil? {:property :attribute} (sym _) ... (hash <$(pair (sym :regex) (regexp (str ".*") (regopt))) ...>)) PATTERN