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

False positives with Layout/DotPosition #10210

Closed
joeosburn opened this issue Oct 25, 2021 · 1 comment
Closed

False positives with Layout/DotPosition #10210

joeosburn opened this issue Oct 25, 2021 · 1 comment

Comments

@joeosburn
Copy link

I am using the Layout/DotPosition cop with trailing style. I just updated to Rubocop 1.22.2 from 1.22.1.

I am now getting a whole lot of false positives with this cop whenever there are multiline receivers.

For example:

records.map do |record|
  record + 1
end.uniq

now gets incorrectly flagged:

C: [Correctable] Layout/DotPosition: Place the . on the previous line, together with the method call receiver.
      end.uniq

RuboCop version

$ bundle exec rubocop -V
1.22.2 (using Parser 3.0.2.0, rubocop-ast 1.12.0, running on ruby 3.0.2 arm64-darwin20)
  - rubocop-performance 1.11.5
@dvandersluis
Copy link
Member

Fixed by #10207.

ivgiuliani added a commit to gocardless/bucket-store that referenced this issue Oct 26, 2021
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