config/cookstyle.yml in cookstyle-6.6.9 vs config/cookstyle.yml in cookstyle-6.7.3

- old
+ new

@@ -989,10 +989,19 @@ VersionAdded: '6.5.0' Exclude: - '**/metadata.rb' - '**/Berksfile' +ChefDeprecations/ResourceUsesOnlyResourceName: + Description: Starting with Chef Infra Client 16, using `resource_name` without also using `provides` will result in resource failures. Use `provides` to change the name of the resource instead and omit `resource_name` entirely if it matches the name Chef Infra Client automatically assigns based on COOKBOOKNAME_FILENAME. + StyleGuide: '#chefdeprecationsresourceusesonlyresourcename' + Enabled: true + VersionAdded: '6.7.0' + Include: + - '**/libraries/*.rb' + - '**/resources/*.rb' + ############################### # ChefModernize: Cleaning up legacy code and using new built-in resources ############################### ChefModernize: @@ -1113,10 +1122,11 @@ Enabled: true VersionAdded: '5.4.0' Include: - '**/resources/*.rb' - '**/providers/*.rb' + - '**/libraries/*.rb' ChefModernize/UseBuildEssentialResource: Description: Use the build_essential resource instead of the legacy build-essential recipe. This resource ships in the build-essential cookbook v5.0+ and is built into Chef Infra Client 14+ StyleGuide: '#chefmodernizeusebuildessentialresource' Enabled: true @@ -1787,12 +1797,10 @@ #### The base rubocop 0.37 enabled.yml file we started with #### Layout/AccessModifierIndentation: Enabled: true -Naming/AccessorMethodName: - Enabled: true Layout/AlignArray: Enabled: true Layout/AlignHash: Enabled: true Style/AndOr: @@ -2441,6 +2449,10 @@ Style/MultilineWhenThen: Enabled: true # .each_key is a lot more clear that .keys.each Style/HashEachMethods: + Enabled: true + +# We want to catch this deprecation in cookbooks +Lint/DeprecatedOpenSSLConstant: Enabled: true