Skip to content

Commit 07f7729

Browse files
authored
Migrate from Chefstyle to Cookstyle gem (#1833)
Signed-off-by: David Crosby <[email protected]>
1 parent 4c76222 commit 07f7729

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
ruby-version: 2.7
2121
bundler-cache: true
2222
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
23-
- run: bundle exec chefstyle
23+
- run: bundle exec rake style

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ gem "chef-utils", git: "https://github.com/chef/chef", branch: "main", glob: "ch
99

1010
# NOTE: do not submit PRs to add pry as a dep, add to your Gemfile.local
1111
group :development do
12-
gem "chefstyle", "2.2.2"
12+
gem "cookstyle", ">= 7.32.8"
1313
gem "ipaddr_extensions"
1414
gem "rake", ">= 10.1.0"
1515
gem "rspec-collection_matchers", "~> 1.0"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ bundle exec rspec spec/unit/FILE.rb
4141

4242
## Style
4343

44-
We use [Chefstyle](https://github.com/chef/chefstyle), as a code [linter](https://en.wikipedia.org/wiki/Lint_(software)), to enforce style guidelines. To run:
44+
We use [Cookstyle](https://github.com/chef/cookstyle), as a code [linter](https://en.wikipedia.org/wiki/Lint_(software)), to enforce style guidelines. To run:
4545

4646
```
4747
bundle exec rake style

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ rescue LoadError
1616
end
1717

1818
begin
19-
require "chefstyle"
19+
require "cookstyle/chefstyle"
2020
require "rubocop/rake_task"
2121
desc "Run Chefstyle tests"
2222
RuboCop::RakeTask.new(:style) do |task|
2323
task.options += ["--display-cop-names", "--no-color"]
2424
end
2525
rescue LoadError
26-
puts "chefstyle gem is not installed. bundle install first to make sure all dependencies are installed."
26+
puts "cookstyle gem is not installed. bundle install first to make sure all dependencies are installed."
2727
end
2828

2929
task :console do

0 commit comments

Comments
 (0)