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

Rubocop 1.16.1 fails with error for Layout/HashAlignment cop #9861

Closed
nadjaheitmann opened this issue Jun 9, 2021 · 3 comments · Fixed by #9862
Closed

Rubocop 1.16.1 fails with error for Layout/HashAlignment cop #9861

nadjaheitmann opened this issue Jun 9, 2021 · 3 comments · Fixed by #9862
Assignees
Labels

Comments

@nadjaheitmann
Copy link

nadjaheitmann commented Jun 9, 2021

Starting with robocop 1.16.1, our CI fails with the error described below. Please see the below link for a detailed trace.


Actual behavior

An error occurred while Layout/HashAlignment cop was inspecting /home/runner/work/foreman_puppet/foreman_puppet/app/controllers/concerns/foreman_puppet/extensions/api_hostgroups_controller.rb:11:163. undefined method 'loc' for nil:NilClass

Steps to reproduce the problem

See here:
https://github.com/ATIX-AG/foreman_puppet/runs/2784078280?check_suite_focus=true

RuboCop version

1.16.1 (using Parser 3.0.1.1, rubocop-ast 1.7.0, running on ruby 2.7.3 x86_64-linux)
  - rubocop-minitest 0.10.3
  - rubocop-performance 1.8.1
  - rubocop-rails 2.8.1
@nertzy
Copy link

nertzy commented Jun 14, 2021

I see that this issue is pinned. I also see that it is closed. Should there be a new release so that users can get this fix?

Thanks!

@dvandersluis
Copy link
Member

There is a fix in master (you could install rubocop from master for now if necessary, it should be stable), but we are planning on another release likely early this week.

@koic
Copy link
Member

koic commented Jun 15, 2021

RuboCop 1.17 is out. Thank you for waiting!

@koic koic unpinned this issue Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants