Navigation Menu

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

Bump rubocop from 1.28.2 to 1.29.0 #386

Merged
merged 2 commits into from May 12, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 9, 2022

Bumps rubocop from 1.28.2 to 1.29.0.

Release notes

Sourced from rubocop's releases.

RuboCop 1.29

New features

Bug fixes

  • #10586: Fix a false positive for Style/DoubleNegation when using define_method or define_singleton_method. (@​ydah)
  • #10579: Fix a false positive for Style/FetchEnvVar when calling a method with safe navigation`. (@​koic)
  • #10581: Fix a false positive for Style/FetchEnvVar when comparing with ENV['TERM']. (@​koic)
  • #10589: Fix autocorrect for Style/RaiseArgs with EnforcedStyle: compact and exception object is assigned to a local variable. (@​nobuyo)
  • #10325: Enhance Style/RedundantCondition by considering the case that variable assignments in each branch. (@​nobuyo)
  • #10592: Fix infinite loop on Style/MultilineTernaryOperator if using assignment method and condition/branch is multiline. (@​nobuyo)
  • #10536: Fix validation for command-line options combination of --display-only-fail-level-offenses and --auto-correct. (@​nobuyo)

Changes

Changelog

Sourced from rubocop's changelog.

1.29.0 (2022-05-06)

New features

Bug fixes

  • #10586: Fix a false positive for Style/DoubleNegation when using define_method or define_singleton_method. ([@​ydah][])
  • #10579: Fix a false positive for Style/FetchEnvVar when calling a method with safe navigation`. ([@​koic][])
  • #10581: Fix a false positive for Style/FetchEnvVar when comparing with ENV['TERM']. ([@​koic][])
  • #10589: Fix autocorrect for Style/RaiseArgs with EnforcedStyle: compact and exception object is assigned to a local variable. ([@​nobuyo][])
  • #10325: Enhance Style/RedundantCondition by considering the case that variable assignments in each branch. ([@​nobuyo][])
  • #10592: Fix infinite loop on Style/MultilineTernaryOperator if using assignment method and condition/branch is multiline. ([@​nobuyo][])
  • #10536: Fix validation for command-line options combination of --display-only-fail-level-offenses and --auto-correct. ([@​nobuyo][])

Changes

  • #10577: (Compatibility) Drop support for Ruby 2.5 and JRuby 9.2 (CRuby 2.5 compatible). ([@​koic][])
  • #10585: Enhance the autocorrect for Style/FetchEnvVar. ([@​johnny-miyake][])
  • #10577: (Breaking) Retire Lint/UselessElseWithoutRescue cop. ([@​koic][])
Commits
  • 2f2b2a7 Cut 1.29
  • e6a5a94 Update Changelog
  • 1b6bda4 Support the cases that there is a method call in each branch
  • 070ffea [Fix #10325] Enhance Style/RedundantCondition by considering the case that ...
  • 3439417 Remove an old reference to version 1.0
  • 5b7c91b Tweak uniformity of expression was implemented
  • 914551a [Fix #10568] Add new Style/EnvHome cop
  • 0d23a0a Tweak highlight offense range for InternalAffairs/MethodNameEndWith cop
  • 73dfcf2 Merge pull request #10600 from nobuyo/add-new-internal-affairs-method-name-en...
  • 6eadcd9 Add new InternalAffairs/MethodNameEndWith cop
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.28.2 to 1.29.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop@v1.28.2...v1.29.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested review from volmer, rafaelfranca and a team as code owners May 9, 2022 15:45
@dependabot dependabot bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels May 9, 2022
@adrianna-chang-shopify
Copy link
Contributor

cc @Shopify/rails -- I'd like to bump Rubocop ahead of releasing a new version of the style guide (which I'd like to do so that these changes can be released).

What's our policy on enabling new cops? I've enabled only the Lint and Security ones, as that seemed to be the pattern for past rubocop bumps. Can anyone weigh in here? As an aside, would it be appropriate to document release instructions in the gem's README?

@adrianna-chang-shopify
Copy link
Contributor

After speaking with Rafael, the guideline is to disable all new cops when bumping Rubocop. New cops can be problematic if they don't have autocorrects. It's better to turn on new cops as we see fit, separate from bumping Rubocop.

@adrianna-chang-shopify adrianna-chang-shopify merged commit 519f3b7 into main May 12, 2022
@adrianna-chang-shopify adrianna-chang-shopify deleted the dependabot/bundler/rubocop-1.29.0 branch May 12, 2022 20:26
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems May 13, 2022 19:59 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants