config/cookstyle.yml in cookstyle-7.11.1 vs config/cookstyle.yml in cookstyle-7.11.3

- old
+ new

@@ -219,11 +219,11 @@ VersionAdded: '5.2.0' Include: - '**/metadata.rb' Chef/Correctness/BlockGuardWithOnlyString: - Description: A resource guard (not_if/only_if) that is a string should not be wrapped in {}. Wrapping a guard string in {} causes it to be executed as Ruby code which will always returns true instead of a shell command that will actually run. + Description: A resource guard (not_if/only_if) that is a string should not be wrapped in {}. Wrapping a guard string in {} causes it to be executed as Ruby code which will always return true instead of a shell command that will actually run. StyleGuide: 'chef_correctness_blockguardwithonlystring' Enabled: true VersionAdded: '5.2.0' Exclude: - '**/attributes/*.rb' @@ -582,11 +582,11 @@ Exclude: - '**/metadata.rb' - '**/Berksfile' Chef/Deprecations/EpicFail: - Description: Use ignore_failure method instead of the deprecated epic_fail method + Description: Use `ignore_failure` in resources to continue when failures occur instead of the deprecated `epic_fail` property StyleGuide: 'chef_deprecations_epicfail' Enabled: true VersionAdded: '5.1.0' Exclude: - '**/attributes/*.rb' @@ -841,11 +841,11 @@ - '**/metadata.rb' - '**/attributes/*.rb' - '**/Berksfile' Chef/Deprecations/EOLAuditModeUsage: - Description: The beta Audit Mode feature in Chef Infra Client was removed in Chef Infra Client 15.0. Users should instead use InSpec and the audit cookbook. See https://www.inspec.io/ for more information. + Description: The beta Audit Mode feature in Chef Infra Client was removed in Chef Infra Client 15.0. StyleGuide: 'chef_deprecations_eolauditmodeusage' Enabled: true VersionAdded: '5.10.0' Exclude: - '**/metadata.rb' @@ -1069,11 +1069,11 @@ Exclude: - '**/metadata.rb' - '**/Berksfile' Chef/Deprecations/ChefHandlerRecipe: - Description: There is no need to include the empty and deprecated chef_handler::default recipe in order to use the chef_handler resource. + Description: There is no need to include the empty and deprecated chef_handler::default recipe to use the chef_handler resource. StyleGuide: 'chef_deprecations_chefhandlerrecipe' Enabled: true VersionAdded: '6.12.0' Exclude: - '**/metadata.rb' @@ -1105,11 +1105,11 @@ VersionChanged: '6.16.0' Include: - '**/metadata.rb' Chef/Deprecations/ChefShellout: - Description: Don't use deprecated Chef::ShellOut which was removed in Chef Infra Client 13. Use Mixlib::ShellOut instead, which behaves identically. + Description: Don't use the deprecated `Chef::ShellOut` class which was removed in Chef Infra Client 13. Use the `Mixlib::ShellOut` class instead, which behaves identically. StyleGuide: 'chef_deprecations_chefshellout' Enabled: true VersionAdded: '6.17.0' Exclude: - '**/metadata.rb' @@ -2245,11 +2245,12 @@ Enabled: true Style/Proc: Enabled: true Style/RaiseArgs: Enabled: true +# disabled for now as this breaks ruby_block resources Style/RedundantBegin: - Enabled: true + Enabled: false Style/RedundantException: Enabled: true Style/RedundantFreeze: Enabled: true Style/RedundantParentheses: