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 autocorrecting to CookbooksDependsOnSelf #186

Merged
merged 2 commits into from
Aug 14, 2019
Merged

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Aug 14, 2019

If we change the node to the depends node we found then we can delete it easily.

Signed-off-by: Tim Smith tsmith@chef.io

If we change the node to the depends node we found then we can delete it easily.

Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 requested review from a team as code owners August 14, 2019 18:21
@lamont-granquist
Copy link
Contributor

ehrm, although that looks like it broke the tests, and the fact the line number changed is a bit ominous....

@tas50
Copy link
Contributor Author

tas50 commented Aug 14, 2019

Yep that's expected because it tags the depends as the offense now instead of the name. The bit you don't need is the bogus depends. I'll update the test.

This test failed because what we flag is correct now.

Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 merged commit 36a5405 into master Aug 14, 2019
@chef-ci chef-ci deleted the self_autocorrect branch August 14, 2019 21:24
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