lib/rubocop/cop/chef/effortless/node_environment.rb in cookstyle-7.7.2 vs lib/rubocop/cop/chef/effortless/node_environment.rb in cookstyle-7.8.0
- old
+ new
@@ -21,10 +21,10 @@
module Effortless
# Neither Policyfiles or Effortless Infra which is based on Policyfiles supports Chef Environments
#
# @example
#
- # # bad
+ # #### incorrect
# node.environment == "production"
# node.chef_environment == "production"
#
class CookbookUsesEnvironments < Base
MSG = 'Cookbook uses environments, which cannot be used in Policyfiles or Effortless Infra'