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
A cop that enforces Gemfile
vs gems.rb
#9580
Comments
As far as I've heard from Bundler committer at a conference of Ruby a few years ago, the default is |
I recall something similar, but in general I don't mind the proposal for this cop. It's going to be very easy to implement. Frankly, I've always hated the convention of Ruby files without extensions, as this made it opaque whether those are Ruby files or not, but I guess the original plans changed because there were many concerns about breakages in case of a forceful push to |
🤔 This is actually surprising to me. @deivid-rodriguez do you have any insights? |
Yes, it's exactly as @bbatsov guessed. There used to be plans to make the switch and make |
bbatsov wrote:
Same here. I even changed files such as "README" to "README.md" because it helps my brain
Personally I just use .gemspec files anyway and even have custom ruby code to |
Is this still available? Looks like a good first issue for me to get my hands on 😄 |
Add a new cop which enforces which bundler gem filename to use. By default, enforces Gemfile and its related Gemfile.lock file. Alternatively, setting RequiresGemfile to false enforces gems.rb and its related gems.locked file.
Is your feature request related to a problem? Please describe.
I'm kicking the tires on changing our
Gemfile
togems.rb
. However, we have many internal gems within our monorepo and it just occurred to me that it would be cool to have a configurable cop that enforces one or the other.Describe the solution you'd like
A cop that checks to make sure you have a
Gemfile
or agems.rb
(and it counterpart lockfiles) depending on what you've configured. Maybe we default to the newergems.rb
?The text was updated successfully, but these errors were encountered: