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

Bug Report: rubocop -V does not print rubocop-factory_bot version #11884

Closed
ydakuka opened this issue May 16, 2023 · 0 comments · Fixed by #11885
Closed

Bug Report: rubocop -V does not print rubocop-factory_bot version #11884

ydakuka opened this issue May 16, 2023 · 0 comments · Fixed by #11885

Comments

@ydakuka
Copy link

ydakuka commented May 16, 2023

Actual behavior

I have the following code:

# Gemfile

group :development, :test do
  gem 'rubocop', '~> 1.50.2', require: false
  gem 'rubocop-capybara', '~> 2.18.0', require: false
  gem 'rubocop-factory_bot', '~> 2.23.0', require: false
  gem 'rubocop-rails', '~> 2.19.1', require: false
  gem 'rubocop-rake', '~> 0.6.0', require: false
  gem 'rubocop-rspec', '~> 2.22.0', require: false
  gem 'rubocop-performance', '~> 1.17.1', require: false
# .rubocop.yml

inherit_from: .rubocop_todo.yml

require:
  - rubocop-capybara
  - rubocop-factory_bot
  - rubocop-performance
  - rubocop-rails
  - rubocop-rake
  - rubocop-rspec

I run the command:

ydakuka@yauhenid:~/Work/project$ bin/rails_docker rubocop -V
1.50.2 (using Parser 3.2.2.1, rubocop-ast 1.28.1, running on ruby 2.7.8) [x86_64-linux]
  - rubocop-capybara 2.18.0
  - rubocop-performance 1.17.1
  - rubocop-rails 2.19.1
  - rubocop-rake 0.6.0
  - rubocop-rspec 2.22.0
@ydakuka ydakuka changed the title Bug Report: rubocop -V does not rubocop-factory_bot version Bug Report: rubocop -V does not print rubocop-factory_bot version May 16, 2023
@koic koic transferred this issue from rubocop/rubocop-factory_bot May 16, 2023
koic added a commit to koic/rubocop that referenced this issue May 16, 2023
…sion when using it

Fixes rubocop#11884.

This PR makes `rubocop -V` display rubocop-factory_bot version when using it.

Also, the rubocop-capybara version is already displaying up fine,
but this PR adds a spec for that because it lacks the spec when
extracted rubocop-capybara and rubocop-factory_bot from rubocop-rspec.
bbatsov pushed a commit that referenced this issue May 16, 2023
…en using it

Fixes #11884.

This PR makes `rubocop -V` display rubocop-factory_bot version when using it.

Also, the rubocop-capybara version is already displaying up fine,
but this PR adds a spec for that because it lacks the spec when
extracted rubocop-capybara and rubocop-factory_bot from rubocop-rspec.
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 a pull request may close this issue.

1 participant