class RuboCop::Cop::Chef::Deprecations::DeprecatedWindowsVersionCheck
Don’t use the deprecated ‘older_than_win_2012_or_8?` helper. Windows versions before 2012 and 8 are now end of life and this helper will always return false.
@example
#### incorrect if older_than_win_2012_or_8? # do some legacy things end
Constants
- MSG
- RESTRICT_ON_SEND
Public Instance Methods
on_send(node)
click to toggle source
# File lib/rubocop/cop/chef/deprecation/deprecated_windows_version_check.rb, line 35 def on_send(node) add_offense(node, severity: :warning) end