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

Pass range as a positional arg #729

Conversation

pirj
Copy link
Member

@pirj pirj commented Jun 24, 2022

As rubocop/rubocop#10748 allows

The CI will be red until the above PR is not merged and released


Before submitting the PR make sure the following are checked:

  • The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • Wrote good commit messages.
  • [-] Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • [-] Added tests.
  • Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code. - against rubocop PR as dependency
  • [-] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.
  • [-] If this is a new cop, consider making a corresponding update to the Rails Style Guide.

@pirj pirj marked this pull request as ready for review June 27, 2022 07:36
@pirj
Copy link
Member Author

pirj commented Jun 27, 2022

The change is released in RuboCop 1.31.0. Can you please kick off the build? Should be green now.

@koic
Copy link
Member

koic commented Jun 27, 2022

I will take some time to merge and release later because it is to bump the required RuboCop version. (That is, it has user impact.)

Can you add a changelog entry?

@pirj
Copy link
Member Author

pirj commented Jun 27, 2022

it has user impact

Well, reducing the user impact is something we've tried solving with introducing the pending flag.
Do you have some other concerning impact in mind, @koic ?

@pirj pirj force-pushed the pass-range-as-a-positional-argument-in-range_help-range_with_surrounding_space branch 2 times, most recently from b9c28f7 to 6caca55 Compare June 27, 2022 20:45
@pirj pirj force-pushed the pass-range-as-a-positional-argument-in-range_help-range_with_surrounding_space branch from 25fe8fb to 757e9e4 Compare June 27, 2022 21:21
@koic
Copy link
Member

koic commented Jun 28, 2022

The current RuboCop Rails requires the minimum RuboCop version 1.7. This change is a refactoring and has no significant benefit to users updating to the latest 1.31 (e.g. bug fixes).
OTOH, if only the latest RuboCop 1.31 is targeted, there is a point that is inconvenient for users like rubocop/rubocop#10750.

That's why it takes a little time to merge this PR. That said, it's probably going to be merged and released in the next minor release. I'll never forget this PR, so I'll take the opportunity to merge it. Thank you.

@pirj
Copy link
Member Author

pirj commented Jun 28, 2022

Fair enough 👍

it's probably going to be merged and released in the next minor release

Sounds great. I didn't expect this to become a part of a patch release in any case 👍

koic added a commit to koic/rubocop-rails that referenced this pull request Jul 13, 2022
Follow up rubocop/rubocop#10699.

`ActiveSupportExtensionsEnabled` option is supported since RuboCop 1.31.0.
Please merge rubocop#729 first.
@koic koic merged commit e5b727a into rubocop:master Jul 15, 2022
@koic
Copy link
Member

koic commented Jul 15, 2022

Thanks!

@pirj pirj deleted the pass-range-as-a-positional-argument-in-range_help-range_with_surrounding_space branch July 15, 2022 16:17
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