config/cookstyle.yml in cookstyle-6.4.4 vs config/cookstyle.yml in cookstyle-6.5.3
- old
+ new
@@ -832,10 +832,18 @@
Exclude:
- '**/metadata.rb'
- '**/attributes/*.rb'
- '**/Berksfile'
+ChefDeprecations/Ruby27KeywordArgumentWarnings:
+ Description: Pass options to shell_out helpers without the brackets to avoid Ruby 2.7 deprecation warnings.
+ Enabled: true
+ VersionAdded: '6.5.0'
+ Exclude:
+ - '**/metadata.rb'
+ - '**/Berksfile'
+
###############################
# ChefModernize: Cleaning up legacy code and using new built-in resources
###############################
ChefModernize/LegacyBerksfileSource:
@@ -1290,9 +1298,18 @@
Enabled: true
VersionAdded: '6.3.0'
Exclude:
- '**/metadata.rb'
- '**/Berksfile'
+
+ChefModernize/ShellOutHelper:
+ Description: Use the built-in shell_out helper available in Chef Infra Client 12.11+ instead of calling Mixlib::ShellOut.new('foo').run_command.
+ Enabled: true
+ VersionAdded: '6.5.0'
+ Exclude:
+ - '**/metadata.rb'
+ - '**/Berksfile'
+ - '**/libraries/*.rb'
###############################
# ChefRedundantCode: Cleanup unnecessary code in your cookbooks regardless of Chef Infra Client release
###############################