Update rubocop: 1.19.0 → 1.20.0 (minor)
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.19.0 → 1.20.0) · Repo · Changelog
Release Notes
1.20.0
New features
- #10040: Make
Lint/Debugger
aware of debug.rb. (@koic)- #9580: Add a new cop that enforces which bundler gem file to use. (@gregfletch)
Bug fixes
- #10033: Fix an incorrect auto-correct for
Style/BlockDelimiters
when there is a comment after the closing brace and using method chanin. (@koic)- #6630: Updated
Style/CommentAnnotation
to be able to handle multiword keyword phrases. (@dvandersluis)- #7836: Update
Style/BlockDelimeters
to addbegin
...end
when converting a block containingrescue
orensure
to braces. (@dvandersluis)- #10031: Fix a false positive for
Style/HashExcept
when comparing with hash value. (@koic)Changes
- #10034: Add
RubyJard
debugger calls to Lint/Debugger/DebuggerMethods. (@DanielVartanov)- #10006: Interpolated string literals are no longer frozen since Ruby 3.0. (@splattael)
- #9328: Recognize shareable_constant_value magic comment. (@thearjunmdas, @caalberts)
- #10036: Mark
Style/StructInheritance
as unsafe auto-correction. (@koic)
1.19.1 (from changelog)
Bug fixes
- #10017: Fixan error for
Layout/RescueEnsureAlignment
when using zsuper with block. (@koic)- #10011: Fix a false positive for
Style/RedundantSelfAssignmentBranch
when using instance variable, class variable, and global variable. (@koic)- #10010: Fix a false positive for
Style/DoubleNegation
when!!
is used at return location and beforerescue
keyword. (@koic)- #10014: Fix
Style/Encoding
to handle more situations properly. (@dvandersluis)- #10016: Fix conflict between
Style/SoleNestedConditional
andStyle/NegatedIf
/Style/NegatedUnless
. (@dvandersluis)- #10024: Fix an incorrect auto-correct for
Style/RedundantSelfAssignmentBranch
when using multilineif
/else
conditional assignment. (@koic)- #10004: Fix a false positive for
Style/RedundantBegin
when using one-liner with semicolon. (@koic)
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.20
Update Changelog
Update a changelog entry
[Fix #9580] Add New Cop to Enforce Bundler Gem filename (#9903)
[Fix #7836] Update `Style/BlockDelimeters` to add `begin`...`end` when converting a block containing `rescue` or `ensure` to braces.
Clarify relationship between `Layout/MultilineMethodArgumentLineBreaks` and `Layout/FirstMethodArgumentLineBreak`.
[Fix #6630] Updated `Style/CommentAnnotation` to be able to handle multiword keyword phrases.
Refactor `AnnotationComment` into an actual class representing an annotation comment.
Make `Lint/Debugger` aware of debug.rb
[Fix #10031] Fix a false positive for `Style/HashExcept`
[Fix #10033] Fix an incorrect auto-correct for `Style/BlockDelimiters`
[Fix #10036] Mark `Style/StructInheritance` as unsafe auto-correction
Merge pull request #10034 from DanielVartanov/master
Add `RubyJard` debugger calls to Lint/Debugger/DebuggerMethods
Remove redundant parentheses in pending cops message
Interpolated string literals are no longer frozen
MutableConstant: Extract string literal examples
Extract frozen string literal logic into a helper
[Fix #9328] Honour shareable_constant_value magic comment (#9929)
Switch back the version
Cut 1.19.1
Update Changelog
[Fix #9939] Fix/hash as last array item (#9943)
[Fix #10024] Fix an incorrect auto-correct for `Style/RedundantSelfAssignmentBranch`
[Fix #10014] Fix `Style/Encoding` to handle more situations properly.
[Fix #10004] Fix a false positive for `Style/RedundantBegin`
[Fix #10011] Fix a false positive for `Style/RedundantSelfAssignmentBranch`
[Fix #10010] Fix a false positive for `Style/DoubleNegation`
Fix an error for `Layout/RescueEnsureAlignment`
Bump RuboCop Performance to 1.11
Merge pull request #10021 from dvandersluis/issue/10016
[Fix #10016] Fix conflict between `Style/SoleNestedConditional` and `Style/NegatedIf`/`Style/NegatedUnless`.
[Fix #10008] Tweak offense message for `Style/WordArray` and `Style/SymbolArray` cops
Merge pull request #10019 from sunny/patch-1
Fix english in pending banner text
Merge pull request #10013 from pirj/fix-subdepartment-cop-docs-generation
Fix sub-department cop doc generation
Switch back the docs version
↗ ️ rubocop-ast (indirect, 1.10.0 → 1.11.0) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 4 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 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)