#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)
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)
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.60 → ~> 1.24) · Repo · Changelog
Release Notes
1.24.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 59 commits:
Cut 1.24
Update Changelog
Add new `InternalAffairs/RedundantMethodDispatchNode` cop
Add new `Naming/BlockForwarding` cop
[Fix #10303] Add `AllowedNumbers` option to `Style/NumericLiterals`
Merge pull request #10309 from fatkodima/duplicated_gem-multiple-statements
Fix a false positive for `Bundler/DuplicatedGem` when a gem conditionally duplicated within multi-statement bodies
Support Ruby 3.1's hash value omission for `Style/HashSyntax`
Make `Style/CollectionCompact` aware of block pass
Support Ruby 3.1's hash value omission for `Layout/HashAlignment`
Merge pull request #10307 from koic/support_numbered_parameter_for_metrics_length_cops
Support Ruby 2.7's numbered parameter for `Metrics/*Length` cops
Add new `Style/FileWrite` cop
Merge pull request #10306 from koic/fix_incorrect_autocorrect_for_style_hash_conversion
[Fix #10305] Fix an incorrect autocorrect for `Style/HashConversion`
Merge pull request #10212 from HeroProtagonist/documentation-url-from-cli-7671
[Fix #7671] Add cli option to print documentation url for cops
Merge pull request #10301 from koic/fix_incorrect_autocorrect_for_dot_position_and_redudant_self
[Fix #10300] Fix an incorrect autocorrect for `Layout/DotPosition` and `Style/RedundantSelf`
Merge pull request #10298 from koic/fix_false_positive_for_lint_deprecated_open_ssl_constant
[Fix #10297] Fix a false positive for `Lint/DeprecatedOpenSSLConstant`
Merge pull request #10291 from koic/support_hash_value_omission_for_layout_space_after_colon
Support Ruby 3.1's hash value omission syntax for `Layout/SpaceAfterColon`
Use Ruby 3.1 parser for docs
[Fix #10282] Fix an incorrect autocorrect for `Style/EmptyCaseCondition`
[Fix #10284] Fix an incorrect autocorrect for `Style/RedundantRegexpCharacterClass`
[Fix #10285] Fix an incorrect autocorrect for `Style/SoleNestedConditional`
Merge pull request #10279 from koic/new_support_ruby31_anonymous_block_argument_syntax
Add new `Style/FileRead` cop
Remove an obsolete development task
Support Ruby 3.1's anonymous block argument syntax
Merge pull request #10277 from koic/fix_incorrect_autocorrect_for_style_redundant_interpolation
[Fix #10276] Fix an incorrect autocorrect for `Style/RedundantInterpolation`
Tweak Style/CharacterLiteral cop description
Explain why `?\C-\M-d` is good
[Fix #8586] Add AllowForAlignment config param in CommentIndentation
Tweak suggested RuboCop extension URL
Merge pull request #10274 from koic/fix_false_positive_for_internal_affairs_undefined_config
[Fix #10273] Fix a false positive for `InternalAffairs/UndefinedConfig`
Merge pull request #10270 from koic/mark_unsafe_autocorrect_for_lint_incompatible_io_select_with_fiber_scheduler
[Fix #10269] Mark unsafe autocorrect for `Lint/IncompatibleIoSelectWithFiberScheduler`
Fix a typo
[Docs] Add a few extra milestones to the history
[Fix #10265] `Style/IfInsideElse` to be able to handle `if-then` nested inside an `else` without clobbering.
Extract `IfThenCorrector` from `Style/OneLineConditional` to replace an `if-then` structure with a multiline if.
[Docs] Improve section for development (#10267)
Merge pull request #10264 from koic/fix_an_incorrect_autocorrect_for_style_method_call_with_args_parentheses
Fix an incorrect auto-correct for `Style/MethodCallWithArgsParentheses`
Merge pull request #10259 from rubocop/dead_code
Remove unused code
Add new `Style/MapToHash` cop.
Fix --autocorrect error in changelog
Make `Lint/DeprecatedClassMethods` aware of `ENV.freeze`
Display deprecation message for `EnforceSuperclass` module
Merge pull request #10250 from dvandersluis/security/open
Update docs and tests for `Security/Open`.
Merge pull request #10247 from dvandersluis/fix/require-mfa-docs
Fix docs for `Gemspec/RequireMFA`.
Switch back the docs version
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