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

[src/api] Update rubocop: 0.87.1 → 0.88.0 (major) #9914

Merged
merged 6 commits into from Jul 21, 2020

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Jul 14, 2020

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ rubocop (0.87.1 → 0.88.0) · Repo · Changelog

Release Notes

0.88.0

New features

Bug fixes

  • #8232: Fix a false positive for Layout/EmptyLinesAroundAccessModifier when end immediately after access modifier. (@koic)
  • #7777: Fix crash for Layout/MultilineArrayBraceLayout when comment is present after last element. (@shekhar-patil)
  • #7776: Fix crash for Layout/MultilineMethodCallBraceLayout when comment is present before closing braces. (@shekhar-patil)
  • #8282: Fix Style/IfUnlessModifier bad precedence detection. (@tejasbubane)
  • #8289: Fix Style/AccessorGrouping to not register offense for accessor with comment. (@tejasbubane)
  • #8310: Handle major version requirements in Gemspec/RequiredRubyVersion. (@eugeneius)
  • #8315: Fix crash for Style/PercentLiteralDelimiters when the source contains invalid characters. (@eugeneius)
  • #8239: Don't load .rubocop.yml files at all outside of the current project, unless they are personal configuration files and the project has no configuration. (@deivid-rodriguez)

Changes

  • #8021: Rewrite Layout/SpaceAroundMethodCallOperator cop to make it faster. (@fatkodima)
  • #8294: Add of to AllowedNames of MethodParameterName cop. (@AlexWayfer)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 68 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu PRs from our dependency update bot label Jul 14, 2020
@depfu depfu bot changed the title [src/api] Update rubocop: 0.86.0 → 0.88.0 (major) [src/api] Update rubocop: 0.87.1 → 0.88.0 (major) Jul 14, 2020
@depfu depfu bot force-pushed the depfu/update/srcapi/rubocop-0.88.0 branch from 5956a9e to d5edda8 Compare July 14, 2020 13:56
@codecov
Copy link

codecov bot commented Jul 16, 2020

Codecov Report

Merging #9914 into master will decrease coverage by 0.02%.
The diff coverage is 77.27%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9914      +/-   ##
==========================================
- Coverage   90.53%   90.51%   -0.03%     
==========================================
  Files         565      565              
  Lines       21264    21244      -20     
==========================================
- Hits        19251    19228      -23     
- Misses       2013     2016       +3     

After upgrading the rubocop gem version from 0.87.1 to 0.88.0
the following new cop got introduced and autocorrected:

* Style/ArrayCoercion
* Style/CaseLikeIf
* Style/HashAsLastArrayItem
* Style/RedundantFileExtensionInRequire
This fixes the `Style/HashLikeCase` cop which got introduced
after the rubocop gem update from version 0.87.1 to 0.88.0
The autocorrection for this part of the code introduced
changes in the behaviour of it. Therefore we ignore
the cop here, and keep the code as it is.
Address Style/CaseLikeIf cop and move logic from view to a
helper method (addressing a FIXME comment).
@krauselukas krauselukas force-pushed the depfu/update/srcapi/rubocop-0.88.0 branch from 876d92c to 48b8cc4 Compare July 17, 2020 11:39
The rubocop autocorrect for Style/CaseLikeIf does not take into
account the match operator for regex, which in this case
returns the matched data when using it with and if/elsif statement.
After just moving this to an case statement, the data is not returned
anymore.
This could be fixed by using the `$LAST_MATCH_INFO` pseudo variable which
contains the whole `MatchData` object of the latest regex matching group.
@krauselukas krauselukas force-pushed the depfu/update/srcapi/rubocop-0.88.0 branch from 48b8cc4 to 6909ea7 Compare July 17, 2020 11:41
@krauselukas
Copy link
Contributor

rubocop/rubocop#8354

Copy link
Contributor

@saraycp saraycp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@saraycp saraycp merged commit 4187ef3 into master Jul 21, 2020
@saraycp saraycp deleted the depfu/update/srcapi/rubocop-0.88.0 branch July 21, 2020 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
depfu PRs from our dependency update bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants