From 8d8be16a9933ffa620f6c1cff7570f8975567241 Mon Sep 17 00:00:00 2001 From: Xorima Bot Date: Tue, 11 May 2021 09:12:50 +0000 Subject: [PATCH 1/2] Cookstyle 7.12.2 Fixes Issues found and resolved with: resources/inspec_gem.rb - 1:1 refactor: Chef/Deprecations/ResourceWithoutUnifiedTrue - Set unified_mode true in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 April 2022 when Unified Mode becomes the default. https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue Signed-off-by: Xorima Bot --- CHANGELOG.md | 1 + resources/inspec_gem.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73287a3d..f195c7e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- resolved cookstyle error: resources/inspec_gem.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` - resolved cookstyle error: spec/unit/recipes/default_spec.rb:40:7 warning: `ChefDeprecations/DeprecatedChefSpecPlatform` - resolved cookstyle error: spec/unit/recipes/default_spec.rb:56:7 warning: `ChefDeprecations/DeprecatedChefSpecPlatform` - resolved cookstyle error: spec/unit/recipes/default_spec.rb:72:7 warning: `ChefDeprecations/DeprecatedChefSpecPlatform` diff --git a/resources/inspec_gem.rb b/resources/inspec_gem.rb index 51c05fb3..9ab540b4 100644 --- a/resources/inspec_gem.rb +++ b/resources/inspec_gem.rb @@ -1,4 +1,5 @@ provides :inspec_gem +unified_mode true resource_name :inspec_gem property :gem_name, String, name_property: true From 8278d3ba903313cb8ab134f16822e31d3081678c Mon Sep 17 00:00:00 2001 From: Xorima Bot Date: Thu, 12 Aug 2021 17:02:37 +0000 Subject: [PATCH 2/2] Cookstyle 7.17.0 Fixes Issues found and resolved with: tasks/changelog.rake - 48:25 convention: Style/WordArray - Use [] for an array of words. https://rubystyle.guidepercent-w - 49:33 convention: Style/WordArray - Use [] for an array of words. https://rubystyle.guidepercent-w Signed-off-by: Xorima Bot --- CHANGELOG.md | 2 ++ tasks/changelog.rake | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f195c7e2..9a052d81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- resolved cookstyle error: tasks/changelog.rake:48:25 convention: `Style/WordArray` +- resolved cookstyle error: tasks/changelog.rake:49:33 convention: `Style/WordArray` - resolved cookstyle error: resources/inspec_gem.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` - resolved cookstyle error: spec/unit/recipes/default_spec.rb:40:7 warning: `ChefDeprecations/DeprecatedChefSpecPlatform` - resolved cookstyle error: spec/unit/recipes/default_spec.rb:56:7 warning: `ChefDeprecations/DeprecatedChefSpecPlatform` diff --git a/tasks/changelog.rake b/tasks/changelog.rake index ec4db46e..7d9ffb00 100644 --- a/tasks/changelog.rake +++ b/tasks/changelog.rake @@ -45,8 +45,8 @@ begin config.future_release = "v#{metadata.version}" config.user = 'chef-cookbooks' config.project = 'audit' - config.bug_labels = %w(bug Bug Type:\ Bug ) - config.enhancement_labels = %w(enhancement Enhancement Type:\ Enhancement ) + config.bug_labels = ['bug', 'Bug', 'Type: Bug'] + config.enhancement_labels = ['enhancement', 'Enhancement', 'Type: Enhancement'] end rescue LoadError puts 'Problem loading gems please install chef and github_changelog_generator'