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

Added clause to ignore cop UnlessDefinedRequire in rubocop.yml #2566

Merged

Conversation

msys-sgarg
Copy link
Contributor

Description

Rubocop cop - Chef/Ruby/UnlessDefinedRequire , stops the file from loading a module in case its already loaded.

This is causing issues since rails zeitwerk tries to autoload all the dependencies beforehand but in few cases the dependencies are not loaded properly and hence need to be re-loaded on the run time. This was breaking the execution of cookstyle and hence the cop is disabled.

Issues Resolved

chefstyle autocorrection in engines directory broke the running cookstyle metric feature.

Check List

@msys-sgarg msys-sgarg requested review from a team as code owners February 2, 2022 08:35
@netlify
Copy link

netlify bot commented Feb 2, 2022

👷 Deploy Preview for chef-supermarket processing.

🔨 Explore the source changes: 7f42e3b

🔍 Inspect the deploy log: https://app.netlify.com/sites/chef-supermarket/deploys/61fa4b92981516000797a5c2

Signed-off-by: smriti <sgarg@msystechnologies.com>
@msys-sgarg msys-sgarg force-pushed the smriti/failures_cookstyle_due_to_chefstyle_run_fixed branch from e02ba54 to 7f42e3b Compare February 2, 2022 09:14
@saghoshprogress saghoshprogress merged commit f795393 into main Feb 2, 2022
@saghoshprogress saghoshprogress deleted the smriti/failures_cookstyle_due_to_chefstyle_run_fixed branch February 2, 2022 10:13
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.

2 participants