lib/rubocop/cop/chef/style/use_platform_helpers.rb in cookstyle-6.19.5 vs lib/rubocop/cop/chef/style/use_platform_helpers.rb in cookstyle-6.19.11
- old
+ new
@@ -40,9 +40,10 @@
#
class UsePlatformHelpers < Base
extend AutoCorrector
MSG = "Use platform? and platform_family? helpers to check a node's platform"
+ RESTRICT_ON_SEND = [:==, :!=, :eql?, :include?].freeze
def_node_matcher :platform_equals?, <<-PATTERN
(send (send (send nil? :node) :[] $(str {"platform" "platform_family"}) ) ${:== :!=} $str )
PATTERN