-
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
Should we expose our style guide as a gem? #140
Comments
I like the idea. The gem would need to be public, though, since this style guide (and the RuboCop config yml) is public on GH pages and open source repos rely on it. I think also we should make this very repo public, unless there's some good reason not to do it? |
I also think it would be a great idea to release our style guide as a gem. Would be easier to update, we'd gain versioning which would be neat, and we could (probably) match releases to Rubocop versions, if we want. The latter would also make updating code that's been stuck on an older version of the style guide and/or Rubocop easier. |
I'm not comfortable with opening this repo due to the discussion that happen here but I think the gem should be public. I'm working on it. |
This will make easier to use in the projects since change to this repository will not automatically be applied to users and we don't need to deal with caches anymore. We can also define which minimal version of rubocop we support now. As we upgrade our gems using dependabot by default, every time we release a new version of the style guide, the projects will receive the new version as a PR. Closes #140.
This will make easier to use in the projects since change to this repository will not automatically be applied to users and we don't need to deal with caches anymore. We can also define which minimal version of rubocop we support now. As we upgrade our gems using dependabot by default, every time we release a new version of the style guide, the projects will receive the new version as a PR. Closes #140.
This will make easier to use in the projects since change to this repository will not automatically be applied to users and we don't need to deal with caches anymore. We can also define which minimal version of rubocop we support now. As we upgrade our gems using dependabot by default, every time we release a new version of the style guide, the projects will receive the new version as a PR. Closes #140.
TL;DR
It might make sense for us to expose the styleguide as a gem, allowing configuration updates to become part of the predicatable Dependabot auto-update process.
Details
As brought up in Slack
Other benefits that come to mind are:
No more incompatible cops due to version mismatches!
rubocop-performance
), without requiring the client to know to install those copsIf we wanted to get really bold, maybe a gem would even be a good place to put the common foundation for a command similar to
dev style --include-branch-commits
, instead of every repo implementing it on their own.cc. @rafaelfranca
The text was updated successfully, but these errors were encountered: