Skip to content

Commit

Permalink
fix error from rubocop 1.48
Browse files Browse the repository at this point in the history
error from said version of rubocop:
RuboCop::ValidationError:
  Property AutoCorrect of cop FactoryBot/CreateList is supposed to be a boolean and contextual is not.

version `1.61` of `rubocop` fixes that issue, allowing all tests to pass.

found that solution in this issue:
rubocop/rubocop-rspec#1916
from rubocop-rspec, where they were experiencing the same
error and updating rubocop to 1.61, solved the issue.
However they don't appear to know the culprit of this.
  • Loading branch information
Geronimo Mendez committed Jul 16, 2024
1 parent 54b6637 commit 96881f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rubocop-airbnb/rubocop-airbnb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
'Gemfile',
]

spec.add_dependency('rubocop', '~> 1.48.0')
spec.add_dependency('rubocop', '~> 1.61.0')
spec.add_dependency('rubocop-performance', '~> 1.20.2')
spec.add_dependency('rubocop-rails', '~> 2.24.0')
spec.add_dependency('rubocop-rspec', '~> 2.26.0')
Expand Down

0 comments on commit 96881f5

Please sign in to comment.