-
-
Notifications
You must be signed in to change notification settings - Fork 14
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 the excessive_create_list cop #83
Add the excessive_create_list cop #83
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
CI seems to be failing, can you confirm? |
If this is an offense, isn't there a way to resolve it? Because, for example, if you want to create a record beyond 10, you're creating it because that's what you need, right? But if they make it an offense, the only way to solve the problem is to disable this cop, and I don't think that will lead to a fundamental solution. If I have missed something, please point it out. |
We can think of this as LineLength, NestedGroups or MultipleMemoizedHelpers. There is usually no easy or automated way to fix the latter two. However, usually letting those numbers slide is causing increased maintenance costs. |
It's probably a change introduced in the latest rubocop version (given that the |
Fixed in ad51687. |
@ydah please merge at will |
@ddieulivol Thank you for your great work! |
Quick question: What's the release cadence for this gem? Is there a number of new features to be reached before we release a new version? |
The following PRs will be merged: And, we would like to proceed to release once the following issues are resolved: |
@ddieulivol A version containing this cop has been released. Thank you for your contribution to this project! |
Cop used to signal when we create a lot of factory objects with FactoryBot (configurable with the
MaxAmount
option).Before submitting the PR make sure the following are checked:
master
(if not - rebase it).CHANGELOG.md
if the new code introduces user-observable changes.bundle exec rake
) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).If you have created a new cop:
config/default.yml
.Enabled: pending
inconfig/default.yml
.VersionAdded: "<<next>>"
indefault/config.yml
.If you have modified an existing cop's configuration options:
VersionChanged: "<<next>>"
inconfig/default.yml
.