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

[ruby] Upgrade rubocop to version 1.24.0 #196

Closed
wants to merge 1 commit into from

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Dec 24, 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 (~> 1.23.0 → ~> 1.24.0) · Repo · Changelog

Release Notes

1.24.0

New features

  • #10279: Support Ruby 3.1's anonymous block forwarding syntax. (@koic)
  • #10295: Support Ruby 3.1's hash value omission syntax for Layout/HashAlignment. (@koic)
  • #10303: Add AllowedNumbers option to Style/NumericLiterals. (@koic)
  • #10290: Add new Naming/BlockForwarding cop. (@koic)
  • #10289: Add EnforcedShorthandSyntax option to Style/HashSyntax cop to support Ruby 3.1's hash value omission syntax by default. (@koic)
  • #10257: Add new Style/MapToHash cop. (@dvandersluis)
  • #10261: Add new Style/FileRead cop. (@leoarnold)
  • #10291: Support Ruby 3.1's hash value omission syntax for Layout/SpaceAfterColon. (@koic)
  • #10260: Add new Style/FileWrite cop. (@leoarnold)
  • #10307: Support Ruby 2.7's numbered parameter for Metrics/BlockLength, Metrics/ClassLength, Metrics/MethodLength, and Metrics/ModuleLength cops. (@koic)
  • #7671: Add cli option --show-docs-url to print out documentation url for given cops. (@HeroProtagonist)
  • #10308: Make Style/CollectionCompact aware of block pass argument. (@koic)

Bug fixes

  • #10285: Fix an incorrect autocorrect for Style/SoleNestedConditional when using nested if within if foo = bar. (@koic)
  • #10309: Fix a false positive for Bundler/DuplicatedGem when a gem conditionally duplicated within multi-statement bodies. (@fatkodima)
  • #10300: Fix an incorrect autocorrect for Layout/DotPosition and Style/RedundantSelf when auto-correction conflicts. (@koic)
  • #10284: Fix an incorrect autocorrect for Style/RedundantRegexpCharacterClass when regexp containing an unescaped #. (@koic)
  • #10265: Fix Style/IfInsideElse to be able to handle if-then nested inside an else without clobbering. (@dvandersluis)
  • #10297: Fix a false positive for Lint/DeprecatedOpenSSLConstant when building digest using an algorithm string and nested digest constants. (@koic)
  • #10282: Fix an incorrect autocorrect for Style/EmptyCaseCondition when using when ... then in case in a method call. (@koic)
  • #10273: Fix a false positive for InternalAffairs/UndefinedConfig to suppress a false wrong namespace warning. (@koic)
  • #10305: Fix an incorrect autocorrect for Style/HashConversion when using Hash[a || b]. (@koic)
  • #10264: Fix the following incorrect auto-correct for Style/MethodCallWithArgsParentheses with Layout/SpaceBeforeFirstArg. (@koic)
  • #10276: Fix an incorrect autocorrect for Style/RedundantInterpolation when using a method call without parentheses in string interpolation. (@koic)

Changes

  • #10253: Deprecate RuboCop::Cop::EnforceSuperclass module. (@koic)
  • #10248: Make Lint/DeprecatedClassMethods aware of ENV.freeze. (@koic)
  • #10269: Mark Lint/IncompatibleIoSelectWithFiberScheduler as unsafe auto-correction. (@koic)
  • #8586: Add configuration parameter AllowForAlignment in Layout/CommentIndentation. (@jonas054)

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

Commits

See the full diff on Github. The new version differs by 59 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
Copy link
Contributor Author

depfu bot commented Jan 1, 2022

Closed in favor of #197.

@depfu depfu bot closed this Jan 1, 2022
@depfu depfu bot deleted the depfu/update/rubocop-1.24.0 branch January 1, 2022 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant