config/cookstyle.yml in cookstyle-5.2.17 vs config/cookstyle.yml in cookstyle-5.3.6

- old
+ new

@@ -291,9 +291,44 @@ Enabled: true VersionAdded: '5.2.0' Include: - '**/resources/*.rb' +Chef/IncludingAptDefaultRecipe: + Description: Do not include the Apt default recipe to update package cache. Instead use the apt_update resource, which is built into Chef Infra Client 12.7 and later. + Enabled: true + VersionAdded: '5.3.0' + Exclude: + - '**/metadata.rb' + +Chef/IncludingWindowsDefaultRecipe: + Description: Do not include the Windows default recipe, which only installs win32 gems already included in Chef Infra Client + Enabled: true + VersionAdded: '5.3.0' + Exclude: + - '**/metadata.rb' + +Chef/IncludingYumDNFCompatRecipe: + Description: Do not include the yum::dnf_yum_compat default recipe to install yum on dnf systems. Chef Infra Client now includes built in support for DNF. + Enabled: true + VersionAdded: '5.3.0' + Exclude: + - '**/metadata.rb' + +Chef/DefinesChefSpecMatchers: + Description: ChefSpec matchers are now auto generated by ChefSpec 7.1+ and do not need to be defined in a cookbook + Enabled: true + VersionAdded: '5.3.0' + Include: + - '**/libraries/*.rb' + +Chef/ExecuteAptUpdate: + Description: Use the apt_update resource instead of the execute resource to run an apt-get update package cache update + Enabled: true + VersionAdded: '5.3.0' + Exclude: + - '**/metadata.rb' + ############################### # Detecting code that breaks Chef ############################### Chef/CookbooksDependsOnSelf: