Skip to content

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

@jeremy jeremy merged commit d5066bd into rails:main Nov 3, 2024
@koic koic deleted the drop_rubocop_minitest_from_dependency branch November 3, 2024 21:48
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