-
Notifications
You must be signed in to change notification settings - Fork 48
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
Consider using cookstyle instead of rubocop in lint.rb #24
Comments
I second the idea of switching to cookstyle. If cookstyle is the preferred method of linting cookbooks and is the defacto standard, why wouldn't it be the standard in delivery? (or anywhere else for that matter) |
I'm working on a PR for this, and wonder about two possible implementations (I don't think we want to just immediately cut over, because it's possible that someone has older builders that don't have These are the two options as I see them:
I am more in favor of option 1, as it should be the default. Perhaps actually there is a Secret Option 3, which would be this: If |
It looks like Since that was quite some time ago, I think that it's fairly safe to go with option 1. I have a fork where if I have not been able to yet test it on a builder with an older version of ChefDK that does not have cookstyle though. |
I could happily submit the PR to make this change, but wanted to bring it up for discussion.
The current
chef generate
in chefdk results in a cookbook that fails rubocop (and therefore these lint tests). Is there any reason to not switch tocookstyle
for the lint tests?The text was updated successfully, but these errors were encountered: