Skip to content

Conversation

@nikhil2611
Copy link
Contributor

Description

Moving away from chefstyle to cookstyle

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • If Gemfile.lock has changed, I have used --conservative to do it and included the full output in the Description above.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

- Update Rakefile to use cookstyle binary with --chefstyle flag for main code
- Update .rubocop.yml to require cookstyle instead of chefstyle
- Update Gemfile to use cookstyle gem instead of chefstyle
- Add Windows CRLF handling in Rakefile for cross-platform compatibility
- Maintain ignore_dirs logic for excluding test fixtures from style checks
- Both style tasks now use cookstyle gem with appropriate rule sets

Signed-off-by: nikhil2611 <ngupta@progress.com>
All 35 cookstyle violations resolved. Tests passing: 1396 examples, 0 failures, 98.44% coverage.

Signed-off-by: nikhil2611 <ngupta@progress.com>
Move begin keyword to same line as ||= operator in helpers.rb
to satisfy Ruby 3.4 cookstyle requirements.

Signed-off-by: nikhil2611 <ngupta@progress.com>
- Updated Rakefile to use cookstyle binary with --chefstyle flag for Ruby linting
- Moved ignore patterns from Rakefile to .rubocop.yml Exclude section
- Updated pipeline labels to reflect cookstyle usage
- Maintains backward compatibility with existing rake style:chefstyle command
- Follows Chef product's pattern for chefstyle to cookstyle migration

Signed-off-by: nikhil2611 <ngupta@progress.com>
@sonarqubecloud
Copy link

@github-actions
Copy link

Simplecov Report

Covered Threshold
98.51% 90%

@nikhil2611 nikhil2611 marked this pull request as ready for review January 29, 2026 13:18
@nikhil2611 nikhil2611 requested review from a team as code owners January 29, 2026 13:18
@nikhil2611 nikhil2611 mentioned this pull request Jan 29, 2026
11 tasks
@nikhil2611 nikhil2611 requested a review from Stromweld January 29, 2026 13:22
@nikhil2611
Copy link
Contributor Author

@Stromweld I have update here, Could you please review this PR ?

Copy link
Contributor

@Stromweld Stromweld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nikhil2611 nikhil2611 merged commit 185f3da into main Jan 29, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants