We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Style/AccessorGrouping
Rubocop autocorrect seems to enter an infinite loop on the condition described below and never recovers.
Expected Rubocop to group duplicated attr_reader into a single call to it
attr_reader
Rubocop halts, keeps applying changes to the file but seems to be stuck on an infinite loop
foo.rb:
class Foo attr_reader :id attr_reader :id end
rubocop -A --only Style/AccessorGrouping foo.rb
$ bundle exec rubocop -V 1.26.1 (using Parser 3.1.1.0, rubocop-ast 1.16.0, running on ruby 3.1.2 x86_64-linux) - rubocop-rails 2.14.2 - rubocop-rspec 2.9.0
The text was updated successfully, but these errors were encountered:
[Fix rubocop#10633] Fix infinite autocorrection loop in `Style/Access…
13f58ee
…orGrouping` when combining multiple of the same accessor.
Merge pull request #10635 from dvandersluis/issue-10633
5f51f40
[Fix #10633] Fix infinite autocorrection loop in `Style/AccessorGrouping` when combining multiple of the same accessor
dvandersluis
Successfully merging a pull request may close this issue.
Rubocop autocorrect seems to enter an infinite loop on the condition described below and never recovers.
Expected behavior
Expected Rubocop to group duplicated
attr_reader
into a single call to itActual behavior
Rubocop halts, keeps applying changes to the file but seems to be stuck on an infinite loop
Steps to reproduce the problem
foo.rb:
rubocop -A --only Style/AccessorGrouping foo.rb
RuboCop version
The text was updated successfully, but these errors were encountered: