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

allow to specify TargetRubyVersion 2.5 #5101

Merged
merged 1 commit into from
Nov 23, 2017

Conversation

walf443
Copy link
Contributor

@walf443 walf443 commented Nov 23, 2017

parser gem v2.4.0 was released. It start support ruby25, So rubocop can allow to specify TargetRubyVersion 2.5 for preparing ruby 2.5.0 release.

https://github.com/whitequark/parser/blob/master/CHANGELOG.md#v2401-2017-11-13


Before submitting the PR make sure the following are checked:

  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Used the same coding conventions as the rest of the project.
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
  • All tests(rake spec) are passing.
  • The new code doesn't generate RuboCop offenses that are checked by rake internal_investigation.
  • The PR relates to only one subject with a clear title
    and description in grammatically correct, complete sentences.
  • Updated cop documentation with rake generate_cops_documentation (required only when you've added a new cop or changed the configuration/documentation of an existing cop).

@walf443 walf443 changed the title allow TargetRubyVersion 2.5 allow to specify TargetRubyVersion 2.5 Nov 23, 2017
@walf443 walf443 changed the title allow to specify TargetRubyVersion 2.5 make allow to specify TargetRubyVersion 2.5 Nov 23, 2017
@walf443 walf443 changed the title make allow to specify TargetRubyVersion 2.5 allow to specify TargetRubyVersion 2.5 Nov 23, 2017
@walf443 walf443 force-pushed the support_ruby25 branch 2 times, most recently from 354d8e8 to b069ca7 Compare November 23, 2017 08:38
@bbatsov bbatsov merged commit b1a74d7 into rubocop:master Nov 23, 2017
@bbatsov
Copy link
Collaborator

bbatsov commented Nov 23, 2017

👍

wmfgerrit pushed a commit to wikimedia/operations-puppet that referenced this pull request Apr 27, 2020
rubocop looks at the .ruby-version file to find out which ruby version
to target when linting files.

We use rubocop 0.49.1 which does not have support for ruby 2.5 yet. We
would first need rubocop 0.52.0 to bring in:
rubocop/rubocop#5101

When the file got updated, rubocop has not been run by CI since
rake_modules/taskgen.rb does not consider a change to .ruby-version to
be sufficient to run it.  But that breaks any future changes touching a
ruby file.

This reverts commit 037adb5.

Bug: T250538
Change-Id: If45d94da22e8e8d898ba6bd9d73a3be8ea244812
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.

2 participants