Update rubocop 1.62.0 → 1.62.1 (patch)
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 (1.62.0 → 1.62.1) · Repo · Changelog
Release Notes
1.62.1
Bug fixes
- #12761: Fix a false positive for
Style/HashEachMethods
when the key block argument ofEnumerable#each
method is unused afterchunk
. (@koic)- #12768: Fix a false positive for
Style/NilComparison
without receiver andEnforcedStyle: 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 callingclass_variable_set
without arguments. (@earlopain)- #12773: Fix an error for
Style/For
withEnforcedStyle: 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 ofrequire_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
withEnforcedStyle: compact
when passing more than 2 arguments toraise
. (@earlopain)- #12663: Fix
Lint/Syntax
getting disabled byrubocop: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)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 38 commits:
Cut 1.62.1
Update Changelog
Fix an error for `Lint/UselessTimes` when no block is present
Fix an infinite loop for `Style/RaiseArgs` with `EnforcedStyle: compact` when passing than 2 arguments to `raise`
Merge pull request #12771 from Earlopain/node-matcher-directive-followup
Merge pull request #12773 from Earlopain/fix-error-for-style-for
Merge pull request #12772 from Earlopain/fix-error-for-style-class-vars
Fix an error for `Style/For` with `EnforcedStyle: for` when no receiver
Fix an error for `Style/ClassVars` when calling `class_variable_set` without arguments
Merge pull request #12770 from Earlopain/fix-an-error-for-lint-redundant-with-index
Merge pull request #12768 from Earlopain/fix-false-positive-for-style-nil-comparison
Fix a wrong offense message for `InternalAffairs/NodeMatcherDirective`
Fix a false positive for `Style/NilComparison` without receiver
Fix an error for `Lint/RedundantWithIndex` when there is no receiver
Fix an infinite loop for `Style/MultilineMethodSignature` when line break after def
Merge pull request #12765 from Earlopain/fix-an-error-for-layout-multiline-method-call-indentation
Merge pull request #12764 from Earlopain/false-negative-for-layout-empty-line-after-magic-comment
Fix an error for `Layout/MultilineMethodCallIndentation` with safe navigation and assignment method
[Fix #12710] Fix a false negative for `Layout/EmptyLineAfterMagicComment` when the file is comments only
[Docs] Tweak the Prism docs
[Fix #12758] Fix false positives for `Layout/RedundantLineBreak`
Merge pull request #12760 from Earlopain/fix-12663
[Fix #12761] Fix a false positive for `Style/HashEachMethods`
Merge pull request #12753 from Earlopain/fix-12665
[Fix #12665] Fix infinite loop for `InternalAffairs/NodeMatcherDirective` with class methods
[Fix #12663] Prevent `Lint/Syntax` being disabled by directive comments
Fix an incorrect issue number of Prism
[Docs] Expand a bit the history section
Skip `LineLength` phase on `--auto-gen-only-exclude`
Expand configuration docs re: finding target Ruby in *.gemspec file
Only parse target Ruby from gemspec if array elements are strings
Merge pull request #12755 from viralpraxis/fix-redundant-current-directory-in-path-cop-failure-on-require-relative-without-arguments
Fix `RedundantCurrentDirectoryInPath` cop exception
Merge pull request #12752 from Earlopain/error-required-ruby-version
Merge pull request #12751 from Earlopain/fix-12703
Fix an error for `Gemspec/RequiredRubyVersion` when the file is empty
[Fix #12703] Fix an error for `Lint/MixedCaseRange` with invalid byte sequence in UTF-8
Switch back the docs version
↗ ️ rubocop-ast (indirect, 1.31.1 → 1.31.2) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 3 commits:
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 cancel merge
- Cancels automatic merging of this PR
- @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)