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
Drop Ruby 2.5 support #10577
Drop Ruby 2.5 support #10577
Conversation
This includes the following changes: This PR drops Ruby 2.5 support. And CRuby 2.5 compatible JRuby 9.2 will be dropped and CRuby 2.6 compatible JRuby 9.3 or higher is required.
Ruby 2.6 does not support `begin` ... `else` syntax. So `Lint/UselessElse` can't work because it causes a parsing error.
Excellent PR! It shows you the nice progress that every Ruby release has made, given the many small improvements that are now possible in RuboCop's code. 🚀 I was wondering for a bit i we shouldn't make |
(and I did cut 1.28.2 just before merging this PR) |
Follow up rubocop/rubocop#10577.
Follow up rubocop/rubocop#10577.
Follow up rubocop/rubocop#10577.
Reference: rubocop/rubocop#10577
Follow up: rubocop/rubocop#10577
Follow up: rubocop/rubocop#10577
Follow up rubocop/rubocop#10577.
Follow up rubocop/rubocop#10577.
Follow up: rubocop/rubocop#10577
- rubocop/rubocop#10577 Signed-off-by: Peter Boling <peter.boling@gmail.com>
…2.5` Fixes rubocop#10625 and reverts part of rubocop#10577. Only the Ruby version (2.5) to runtime should have been dropped, not code analysis. This PR the specification to `TargetRubyVersion: 2.5` So, this keeps it compatible with `TargetRubyVersion` up to 1.28.2.
Hi @koic, thanks for all the work here. Should the |
This reverts commit 6d0b336 and tweaked. Follow up rubocop#10577 (comment). RuboCop 1.29.1 and higher can analyze Ruby 2.5 code again, so it can restore the cop.
@deivid-rodriguez Yup, I think so too! I've opened #10697 to restore the |
This reverts commit 6d0b336 and tweaked. Follow up #10577 (comment). RuboCop 1.29.1 and higher can analyze Ruby 2.5 code again, so it can restore the cop.
Follow rubocop/rubocop#10577. This PR drops Ruby 2.5 runtime support and fixes the following build error. https://github.com/utkarsh2102/rubocop-packaging/runs/7688082957
Follow up rubocop/rubocop#10577. This commit drops Ruby 2.5 runtime support. And CRuby 2.5 compatible JRuby 9.2 will be dropped and CRuby 2.6 compatible JRuby 9.3 or higher is required.
Follow up rubocop/rubocop#10577. This commit drops Ruby 2.5 runtime support. And CRuby 2.5 compatible JRuby 9.2 will be dropped and CRuby 2.6 compatible JRuby 9.3 or higher is required.
Follow up rubocop/rubocop#10577. This commit drops Ruby 2.5 runtime support. And CRuby 2.5 compatible JRuby 9.2 will be dropped and CRuby 2.6 compatible JRuby 9.3 or higher is required.
Follow up rubocop/rubocop#10577.
Follow up rubocop/rubocop#10577.
Follow up: rubocop/rubocop#10577
Follow up: rubocop/rubocop#10577
Follow up rubocop/rubocop#10577.
Follow up rubocop/rubocop#10577.
Follow up: rubocop/rubocop#10577
Follow up: rubocop/rubocop#10577
This includes the following changes:
Require JRuby 9.3 or higher
CRuby 2.5 compatible JRuby 9.2 will be dropped and CRuby 2.6 compatible JRuby 9.3 or higher is required.
Retire
Lint/UselessElse
copRuby 2.6 does not support
begin
...else
syntax. SoLint/UselessElse
can't work because it causes a parsing error.NOTE: Some bugs found in RuboCop 1.28.1 have been fixed in the master branch. If the next version is a bug fix (i.e. 1.28.2), this PR would wait to be merged until the next minor release.
Before submitting the PR make sure the following are checked:
[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).bundle exec rake default
. It executes all tests and runs RuboCop on its own code.{change_type}_{change_description}.md
if the new code introduces user-observable changes. See changelog entry format for details.