lib/rubocop/cop/chef/modernize/node_roles_include.rb in cookstyle-7.7.2 vs lib/rubocop/cop/chef/modernize/node_roles_include.rb in cookstyle-7.8.0
- old
+ new
@@ -21,13 +21,13 @@
module Modernize
# Use `node.role?('foo')` to check if a node includes a role instead of `node['roles'].include?('foo')`.
#
# @example
#
- # # bad
+ # #### incorrect
# node['roles'].include?('foo')
#
- # # good
+ # #### correct
# node.role?('foo')
#
class NodeRolesInclude < Base
extend AutoCorrector