From a5450dfd4dad4c6ef48d3faea6cdb6ee40c22136 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 24 Aug 2026 07:31:41 -0700 Subject: [PATCH] fix: require cookstyle/chefstyle so style checks actually run The Rakefile required the standalone chefstyle gem, which is not in the bundle -- only cookstyle is. The require therefore hit the LoadError branch and the :style task was never defined. Signed-off-by: Tim Smith --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index eff4962..6776292 100644 --- a/Rakefile +++ b/Rakefile @@ -2,13 +2,13 @@ require "bundler/gem_tasks" require "rspec/core/rake_task" begin - require "chefstyle" + require "cookstyle/chefstyle" require "rubocop/rake_task" RuboCop::RakeTask.new(:style) do |task| task.options += ["--display-cop-names", "--no-color"] end rescue LoadError - puts "chefstyle is not available. (sudo) gem install chefstyle to do style checking." + puts "cookstyle is not available. (sudo) gem install cookstyle to do style checking." end RSpec::Core::RakeTask.new(:test)