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

DEV: Honor split RuboCop gems #31

Merged
merged 2 commits into from
Feb 12, 2024
Merged

DEV: Honor split RuboCop gems #31

merged 2 commits into from
Feb 12, 2024

Conversation

Drenmi
Copy link
Contributor

@Drenmi Drenmi commented Jun 9, 2023

What is this change?

RuboCop RSpec used to contain departments for Capybara and FactoryBot cops, but those are being split out into rubocop-capybara and rubocop-factory_bot gems respectively. This change updates our gemspec and configuration files to reflect that.

It also silences the extension suggestion that otherwise shows up after each run, e.g.:

Tip: Based on detected gems, the following RuboCop extension libraries might be helpful:
  * rubocop-rake (https://rubygems.org/gems/rubocop-rake)

@@ -213,20 +213,8 @@ RSpec/VoidExpect:
RSpec/Yield:
Enabled: true

Capybara/CurrentPathExpectation:
Enabled: true

RSpec/Capybara/FeatureMethods:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it was missed out, but this cop remains in rubocop-rspec, and will be turned into a more generic, non-Capybara specific cop.

@Drenmi
Copy link
Contributor Author

Drenmi commented Jun 9, 2023

Hm. Tests also failing for me on main. 🤔 Will have a look.

@Flink
Copy link
Contributor

Flink commented Jun 26, 2023

@Drenmi Try to rebase against main, I’ve fixed the failing specs 🙂

@Drenmi Drenmi force-pushed the dev/honor-split-rubocop-gems branch 2 times, most recently from cc5559b to 3b03c8f Compare January 26, 2024 02:02
@Drenmi Drenmi requested review from CvX and Flink January 26, 2024 02:04
@Drenmi Drenmi force-pushed the dev/honor-split-rubocop-gems branch from 3b03c8f to 8f23084 Compare January 26, 2024 02:05
@Drenmi Drenmi force-pushed the dev/honor-split-rubocop-gems branch from 8f23084 to 869082a Compare January 26, 2024 02:07
@Drenmi Drenmi merged commit 30b2930 into main Feb 12, 2024
2 checks passed
@Drenmi Drenmi deleted the dev/honor-split-rubocop-gems branch February 12, 2024 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants