Skip to content

Upgrade rubocop to version 1.19.0#46

Closed
depfu[bot] wants to merge 1 commit intomasterfrom
depfu/update/rubocop-1.19.0
Closed

Upgrade rubocop to version 1.19.0#46
depfu[bot] wants to merge 1 commit intomasterfrom
depfu/update/rubocop-1.19.0

Conversation

@depfu
Copy link

@depfu depfu bot commented Aug 13, 2021

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

What changed?

✳️ rubocop (~> 0.76 → ~> 1.19) · Repo · Changelog

Release Notes

1.19.0

New features

  • #4182: Add Lint/AmbiguousRange cop to check for ranges with ambiguous boundaries. (@dvandersluis)
  • #10000: Parallel static analysis by default. (@koic)
  • #9948: Support Ruby 2.7's pattern matching for Style/ConditionalAssignment cop. (@koic)
  • #9999: Add new Style/RedundantSelfAssignmentBranch cop. (@koic)

Bug fixes

  • #9927: Indent hash values in Layout/LineEndStringConcatenationIndentation. (@jonas054)
  • #9959: Make Style/IdenticalConditionalBranches able to handle ternary ifs. (@dvandersluis)
  • #9946: Avoid slow regexp matches in Style/CommentedKeyword. (@jonas054)
  • #7422: Treat constant assignment like other assignment in Layout/SpaceAroundOperators. (@dvandersluis)
  • #9953: Fix an infinite loop error and a false auto-correction behavior for Layout/EndAlignment when using a conditional statement in a method argument. (@koic)
  • #9958: Prevent an infinite loop when a detected method has fewer arguments than expected. (@dvandersluis)
  • #9977: Update Layout/EmptyLineAfterGuardClause to not register an offense if there is another expression following the guard clause on the same line. (@dvandersluis)
  • #9980: Fix a false positive for Style/IdenticalConditionalBranches when assigning to a variable used in a condition. (@koic)
  • #9975: Parentheses are always required for Style/MethodDefParentheses when a forwarding argument (...) is used. (@dvandersluis)
  • #9984: Fix false negatives involving heredocs for Layout/SpaceBeforeComma, Layout/SpaceBeforeComment, Layout/SpaceBeforeSemicolon and Layout/SpaceInsideParens. (@dvandersluis)
  • #9954: Fix infinite loop error for Layout/HashAlignment when EnforcedStyle: with_fixed_indentation is specified for Layout/ArgumentAlignment. (@koic)
  • #10002: Fix an incorrect auto-correct for Lint/AmbigousRegexpLiteral when using nested method arguments without parentheses. (@koic)
  • #9952 rubocop-rspec#1126: Fix inherit_mode for deeply nested configuration defined in extensions' default configuration. (@pirj)
  • #9957: Add WholeWord configuration to Naming/InclusiveLanguage's FlaggedTerms config. (@dvandersluis)
  • #9970: Don't register an offense when sort method has arguments for Style/RedundantSort cop. (@mtsmfm)
  • #4097: Add require English for special globals. (@biinari)
  • #9955: Fix Style/ExplicitBlockArgument adding a second set of parentheses. (@dvandersluis)
  • #9973: Fix a false positive for Layout/RescueEnsureAlignment when aligned rescue keyword and leading dot. (@koic)
  • #9945: Fix auto-correction of lines in heredocs with only spaces in Layout/TrailingWhitespace. (@jonas054)

Changes

  • #9989: Mark Style/CommentedKeyword as unsafe auto-correction. (@koic)
  • #9964: Make Layout/LeadingCommentSpace aware of #:nodoc. (@koic)
  • #9985: Mark Style/IdenticalConditionalBranches as unsafe auto-correction. (@koic)
  • #9962: Update Style/WordArray to register an offense in percent style if any values contain spaces. (@dvandersluis)
  • #9979: Enable basic autocorrection for Style/Semicolon. (@dvandersluis)

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

Commits

See the full diff on Github. The new version differs by 61 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 label Aug 13, 2021
@depfu depfu bot mentioned this pull request Aug 13, 2021
@depfu
Copy link
Author

depfu bot commented Aug 20, 2021

Closed in favor of #47.

@depfu depfu bot closed this Aug 20, 2021
@depfu depfu bot deleted the depfu/update/rubocop-1.19.0 branch August 20, 2021 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants