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

[Fix #9869] Print correct file in override warning #9912

Merged
merged 1 commit into from Jul 5, 2021

Conversation

jonas054
Copy link
Collaborator

@jonas054 jonas054 commented Jul 5, 2021

The list of files from inherit_from is iterated over in reverse order. If we first reverse and then iterate with indices, the indices will start at 0 for the item that was originally last in the list. This is not what we want.

The list of files from `inherit_from` is iterated over in reverse
order. If we first reverse and then iterate with indices, the indices
will start at 0 for the item that was originally last in the list. This
is not what we want.
@koic
Copy link
Member

koic commented Jul 5, 2021

Looks good to me. Thanks!

@koic koic merged commit e18a043 into rubocop:master Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants