Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chefstyle library file for Rake backwards compatibility #969

Merged
merged 1 commit into from
Feb 6, 2024

Commits on Jan 30, 2024

  1. Add chefstyle library file for Rake backwards compatibility

    There's a decent amount of Rake code that uses `require "chefstyle"` to set the
    defaults for RuboCop (eg
    https://github.com/chef/ohai/blob/6d64237f9987c3bf51805e19884e6e710c3a40f6/Rakefile#L19),
    and rather than doing surgery on each repo's Rakefile, it'd be easier to keep
    that same behavior for loading the configuration and cops. With this change
    a migration involving Rake should only involve a Gemfile update and changing
    `require "chefstyle"` to `require "cookstyle/chefstyle"`.
    
    Signed-off-by: David Crosby <dcrosby@fb.com>
    dafyddcrosby committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    9a97f54 View commit details
    Browse the repository at this point in the history