config/cookstyle.yml in cookstyle-6.19.11 vs config/cookstyle.yml in cookstyle-6.20.1
- old
+ new
@@ -1927,11 +1927,11 @@
Enabled: false
VersionAdded: '5.1.0'
Exclude:
- '**/metadata.rb'
- '**/Berksfile'
-
+
# https://github.com/chef/cookstyle/issues/346
ChefEffortless/ChefVaultUsed:
Description: Cookbook uses Chef Vault, which cannot be used in the Effortless Infra pattern
StyleGuide: '#chefeffortlesscookbookuseschefvault'
Enabled: false
@@ -2725,6 +2725,10 @@
Style/Dir:
Enabled: true
# Use __FILE__ or __dir__ to simplify expand_paths
Style/ExpandPathArguments:
+ Enabled: true
+
+# Avoid a safe navigation operator if we don't need it
+Lint/RedundantSafeNavigation:
Enabled: true
\ No newline at end of file