#12761: Fix a false positive for Style/HashEachMethods when the key block argument of Enumerable#each method is unused after chunk. ([@koic][])
#12768: Fix a false positive for Style/NilComparison without receiver and EnforcedStyle: comparison. ([@earlopain][])
#12752: Fix an error for Gemspec/RequiredRubyVersion when the file is empty. ([@earlopain][])
#12770: Fix an error for Lint/RedundantWithIndex when the method has no receiver. ([@earlopain][])
#12775: Fix an error for Lint/UselessTimes when no block is present. ([@earlopain][])
#12772: Fix an error for Style/ClassVars when calling class_variable_set without arguments. ([@earlopain][])
#12773: Fix an error for Style/For with EnforcedStyle: for when no receiver. ([@earlopain][])
#12765: Fix an error for Layout/MultilineMethodCallIndentation with safe navigation and assignment method. ([@earlopain][])
#12703: Fix an error for Lint/MixedCaseRange with invalid byte sequence in UTF-8. ([@earlopain][])
#12755: Fix an exception for RedundantCurrentDirectoryInPath in case of require_relative without arguments. ([@viralpraxis][])
#12710: Fix a false negative for Layout/EmptyLineAfterMagicComment when the file is comments only. ([@earlopain][])
#12758: Fix false positives for Layout/RedundantLineBreak when using && or || after a backslash newline. ([@koic][])
#12763: Fix an infinite loop for Style/MultilineMethodSignature when there is a newline directly after the def keyword. ([@earlopain][])
#12774: Fix an infinite loop for Style/RaiseArgs with EnforcedStyle: compact when passing more than 2 arguments to raise. ([@earlopain][])
#12663: Fix Lint/Syntax getting disabled by rubocop:disable Lint/Syntax. ([@earlopain][])
#12756: Only parse target Ruby from gemspec if array elements are strings. ([@davidrunger][])
Changes
#12730: Skip LineLength phase on --auto-gen-only-exclude. ([@sambostock][])
1.62.0 (2024-03-06)
New features
#12600: Support Prism as a Ruby parser (experimental). ([@koic][])
#12725: Support TargetRubyVersion 3.4 (experimental). ([@koic][])
Bug fixes
#12746: Fix a false positive for Lint/ToEnumArguments when enumerator is created for another method in no arguments method definition. ([@koic][])
#12726: Fix a false positive for Style/RedundantLineContinuation when using line concatenation and calling a method with keyword arguments without parentheses. ([@koic][])
#12738: Fix an error for Style/Encoding when magic encoding with mixed case present. ([@koic][])
#12732: Fix error determining target Ruby when gemspec required_ruby_version is read from another file. ([@davidrunger][])
#12736: Fix invalid autocorrect in Layout/SpaceInsideHashLiteralBraces. ([@bquorning][])
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 show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@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)
Updates the requirements on rubocop to permit the latest version.
Release notes
Sourced from rubocop's releases.
Changelog
Sourced from rubocop's changelog.
... (truncated)
Commits
ed9b69e
Cut 1.62.1a99fe78
Update Changelogeceedb7
Fix an error forLint/UselessTimes
when no block is present8d2ef48
Fix an infinite loop forStyle/RaiseArgs
withEnforcedStyle: compact
when...bb0dd97
Merge pull request #12771 from Earlopain/node-matcher-directive-followup9b39a55
Merge pull request #12773 from Earlopain/fix-error-for-style-for409c5a0
Merge pull request #12772 from Earlopain/fix-error-for-style-class-vars54dbee1
Fix an error forStyle/For
withEnforcedStyle: for
when no receiver94c17b8
Fix an error forStyle/ClassVars
when callingclass_variable_set
without ...5ee786d
Merge pull request #12770 from Earlopain/fix-an-error-for-lint-redundant-with...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 show