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

Drop rubocop-minitest from gem dependency #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

koic
Copy link
Contributor

@koic koic commented Jul 10, 2024

Closes #13.

This PR drops rubocop-minitest from gem dependency.

In fact, the Minitest department's Cop is not used in rubocop-rails-omakase: https://github.com/rails/rubocop-rails-omakase/blob/v1.0.0/rubocop.yml

This means that it might be appropriate for users to add the Minitest department's cop only when they start using it. As a result, there will be no need to install gems that are not included in the rubocop-rails-omakase configuration.

Users can be given the choice to add cops based on the testing framework they are using.

Closes rails#13.

This PR drops rubocop-minitest from gem dependency.

In fact, the `Minitest` department's Cop is not used in rubocop-rails-omakase:
https://github.com/rails/rubocop-rails-omakase/blob/v1.0.0/rubocop.yml

This means that it might be appropriate for users to add the `Minitest` department's cop only when they start using it.
As a result, there will be no need to install gems that are not included in the rubocop-rails-omakase configuration.

Users can be given the choice to add cops based on the testing framework they are using.
@jeremy
Copy link
Member

jeremy commented Jul 10, 2024

Let's introduce a small set of Minitest cops (like Minitest/AssertNil) rather than removing.

@koic
Copy link
Contributor Author

koic commented Aug 16, 2024

RuboCop Minitest includes a considerable number of cops.
https://docs.rubocop.org/rubocop-minitest/cops_minitest.html

Therefore, it will likely be necessary to establish clear criteria when selecting a smaller subset.

For example, it might be considered to enable Minitest cops that align with the "Assertions" section of the Minitest Style Guide, but even then, it might still feel like a large number.
https://minitest.rubystyle.guide/#assertions

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.

Consider removing rubocop-minitest dependency
2 participants