config/cookstyle.yml in cookstyle-5.13.7 vs config/cookstyle.yml in cookstyle-5.14.1
- old
+ new
@@ -623,10 +623,18 @@
VersionAdded: '5.13.0'
Exclude:
- '**/metadata.rb'
- '**/attributes/*.rb'
+ChefDeprecations/ChefRewind:
+ Description: Use delete_resource / edit_resource instead of functionality in the deprecated chef-rewind gem
+ Enabled: true
+ VersionAdded: '5.14.0'
+ Exclude:
+ - '**/metadata.rb'
+ - '**/attributes/*.rb'
+
###############################
# ChefModernize: Cleaning up legacy code and using new built-in resources
###############################
ChefModernize/LegacyBerksfileSource:
@@ -911,11 +919,11 @@
Description: Use the archive_file resource built into Chef Infra Client 15+ instead of the zipfile resource from the zipfile cookbook.
Enabled: true
VersionAdded: '5.12.0'
ChefModernize/UnnecessaryMixlibShelloutRequire:
- Description: Chef Infra Client includes mixlib/shellout automatically in resources and providers.
+ Description: Chef Infra Client 12.4 and later include mixlib/shellout automatically in resources and providers.
Enabled: true
VersionAdded: '5.12.0'
Include:
- '**/resources/*.rb'
- '**/providers/*.rb'
@@ -925,9 +933,17 @@
Enabled: true
VersionAdded: '5.13.0'
Include:
- '**/resources/*.rb'
- '**/providers/*.rb'
+
+ChefModernize/ChefGemNokogiri:
+ Description: The nokogiri gem ships in Chef Infra Client 12+ and does not need to be installed before being used.
+ Enabled: true
+ VersionAdded: '5.14.0'
+ Exclude:
+ - '**/metadata.rb'
+ - '**/attributes/*.rb'
###############################
# Migrating to new patterns
###############################