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

Layout/DotPosition bugged in 1.22.2 #10215

Closed
unRARed opened this issue Oct 26, 2021 · 3 comments
Closed

Layout/DotPosition bugged in 1.22.2 #10215

unRARed opened this issue Oct 26, 2021 · 3 comments

Comments

@unRARed
Copy link

unRARed commented Oct 26, 2021

Expected behavior

Should not be throwing where we're breaking on a trailing .

Actual behavior

It is.

Steps to reproduce the problem

Layout/DotPosition:
  EnforcedStyle: trailing
expect(json['registry_entries'].
  select{ |e| e['supporting_assets'] }.length).to be 1
C: [Correctable] Layout/DotPosition: Place the . on the previous line, together with the method call receiver.
        select{ |e| !e['supporting_assets'] }.length).to be 1
                                                     ^

RuboCop version

$ [bundle exec] rubocop -V
1.22.2 (using Parser 3.0.2.0, rubocop-ast 1.12.0, running on ruby 2.7.2 x86_64-darwin20)
  - rubocop-faker 1.1.0
  - rubocop-performance 1.11.5
  - rubocop-rails 2.12.4
  - rubocop-rake 0.6.0
  - rubocop-rspec 2.5.0
@dvandersluis
Copy link
Member

Fixed by #10207.

@unRARed
Copy link
Author

unRARed commented Oct 26, 2021

@dvandersluis awesome! Was this also fixed in rubygems? We encountered it after a bundle update this morning.

@dvandersluis
Copy link
Member

No it hasn’t been released yet it will be in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants