Update rubocop 1.58.0 → 1.59.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.58.0 → 1.59.0) · Repo · Changelog
Release Notes
1.59.0
New features
Bug fixes
- #12434: Fix a false positive for
Lint/LiteralAssignmentInCondition
when using interpolated string or xstring literals. (@koic)- #12435: Fix a false positive for
Lint/SelfAssignment
when using attribute assignment with method call with arguments. (@koic)- #12444: Fix false positive for
Style/HashEachMethods
when receiver literal is not a hash literal. (@koic)- #12524: Fix a false positive for
Style/MethodCallWithArgsParentheses
whenEnforcedStyle: omit_parentheses
and parens inwhen
clause is used to pass an argument. (@koic)- #12505: Fix a false positive for
Style/RedundantParentheses
when using parenthesizedlambda
orproc
withdo
...end
block. (@koic)- #12442: Fix an incorrect autocorrect for
Style/CombinableLoops
when looping over the same data as previous loop indo
...end
and{
...}
blocks. (@koic)- #12432: Fix a false positive for
Lint/LiteralAssignmentInCondition
when using parallel assignment with splat operator in block of guard condition. (@koic)- #12441: Fix false positives for
Style/HashEachMethods
when using destructed block arguments. (@koic)- #12436: Fix false positives for
Style/RedundantParentheses
when a part of range is a parenthesized condition. (@koic)- #12429: Fix incorrect autocorrect for
Style/MapToHash
when using dot method calls forto_h
. (@koic)- #12488: Make
Lint/HashCompareByIdentity
aware of safe navigation operator. (@koic)- #12489: Make
Lint/NextWithoutAccumulator
aware of safe navigation operator. (@koic)- #12490: Make
Lint/NumberConversion
aware of safe navigation operator. (@koic)- #12491: Make
Lint/RedundantWithIndex
aware of safe navigation operator. (@koic)- #12492: Make
Lint/RedundantWithObject
aware of safe navigation operator. (@koic)- #12493: Make
Lint/UnmodifiedReduceAccumulator
aware of safe navigation operator. (@koic)- #12473: Make
Style/ClassCheck
aware of safe navigation operator. (@koic)- #12445: Make
Style/CollectionCompact
aware of safe navigation operator. (@koic)- #12474: Make
Style/ConcatArrayLiterals
aware of safe navigation operator. (@koic)- #12476: Make
Style/DateTime
aware of safe navigation operator. (@koic)- #12479: Make
Style/EachWithObject
aware of safe navigation operator. (@koic)- #12446: Make
Style/HashExcept
aware of safe navigation operator. (@koic)- #12447: Make
Style/MapCompactWithConditionalBlock
aware of safe navigation operator. (@koic)- #12484: Make
Style/Next
aware of safe navigation operator. (@koic)- #12486: Make
Style/RedundantArgument
aware of safe navigation operator. (@koic)- #12454: Make
Style/RedundantFetchBlock
aware of safe navigation operator. (@koic)- #12495: Make
Layout/RedundantLineBreak
aware of safe navigation operator. (@koic)- #12455: Make
Style/RedundantSortBy
aware of safe navigation operator. (@koic)- #12456: Make
Style/RedundantSortBy
aware of safe navigation operator. (@koic)- #12480: Make
Style/ExactRegexpMatch
aware of safe navigation operator. (@koic)- #12457: Make
Style/Sample
aware of safe navigation operator. (@koic)- #12458: Make
Style/SelectByRegexp
cops aware of safe navigation operator. (@koic)- #12494: Make
Layout/SingleLineBlockChain
aware of safe navigation operator. (@koic)- #12461: Make
Style/StringChars
aware of safe navigation operator. (@koic)- #12468: Make
Style/Strip
aware of safe navigation operator. (@koic)- #12469: Make
Style/UnpackFirst
aware of safe navigation operator. (@koic)Changes
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 60 commits:
Cut 1.59
Update Changelog
[Fix #12524] Fix a false positive for `Style/MethodCallWithArgsParentheses`
Make `Style/MethodCallWithoutArgsParentheses` allow parenthesized `it`
Make `Style/RedundantSelf` allow `self.it`
[Fix #12526] Fix incorrect rendering typos
[Fix #12444] Fix false positive for `Style/HashEachMethods`
Add new `Lint/ItWithoutArgumentsInBlock` cop
Merge pull request #12521 from koic/make_style_select_by_regexp_aware_of_safe_navigation_operator
Merge pull request #12438 from koic/fix_a_false_positive_for_lint_literal_assignment_in_condition
[Fix #12458] Make `Style/SelectByRegexp` cops aware of safe navigation operator
Revert "Make `Style/SingleArgumentDig` aware of safe navigation operator"
Merge pull request #12513 from koic/fix_false_positives_for_style_redundant_parentheses
Merge pull request #12515 from koic/fix_an_incorrect_autocorrect_for_style_combinable_loops
Merge pull request #12439 from koic/fix_a_false_positive_for_lint_self_assignment
[Fix #12442] Fix an incorrect autocorrect for `Style/CombinableLoops`
[Fix #12436] Fix false positives for `Style/RedundantParentheses`
[Fix #12489] Make `Lint/NextWithoutAccumulator` aware of safe navigation operator
[Fix #12489] Make `Lint/HashCompareByIdentity` aware of safe navigation operator
[Fix #12494] Make `Layout/SingleLineBlockChain` aware of safe navigation operator
[Fix #12495] Make `Layout/RedundantLineBreak` aware of safe navigation operator
[Fix #12486] Make `Style/RedundantArgument` aware of safe navigation operator
[Fix #12484] Make `Style/Next` aware of safe navigation operator
[Fix #12479] Make `Style/EachWithObject` aware of safe navigation operator
[Fix #12480] Make `Style/ExactRegexpMatch` aware of safe navigation operator
[Fix #12476] Make `Style/ConcatArrayLiterals` aware of safe navigation operator
[Fix #12474] Make `Style/ConcatArrayLiterals` aware of safe navigation operator
[Fix #12473] Make `Style/ClassCheck` aware of safe navigation operator
[Fix #12469] Make `Style/UnpackFirst` aware of safe navigation operator
Merge pull request #12505 from koic/fix_a_false_positive_for_style_redundant_parentheses
Fix a false positive for `Style/RedundantParentheses`
[Fix #12454] Make `Style/RedundantFetchBlock` aware of safe navigation operator
[Fix #12455] Make `Style/RedundantSort` aware of safe navigation operator
[Fix #12456] Make `Style/RedundantSortBy` aware of safe navigation operator
[Fix #12457] Make `Style/Sample` aware of safe navigation operator
[Fix #12460] Make `Style/SingleArgumentDig` aware of safe navigation operator
[Fix #12468] Make `Style/Strip` aware of safe navigation operator
[Fix #12461] Make `Style/StringChars` aware of safe navigation operator
[Fix #12490] Make `Lint/NumberConversion` aware of safe navigation operator
[Fix #12491] Make `Lint/RedundantWithIndex` aware of safe navigation operator
[Fix #12492] Make `Lint/RedundantWithObject` aware of safe navigation operator
[Fix #12493] Make `Lint/UnmodifiedReduceAccumulator` aware of safe navigation operator
Merge pull request #12452 from koic/make_style_map_compact_with_conditional_block_aware_of_safe_navigation_operator
Merge pull request #12451 from koic/make_style_hash_except_aware_of_safe_navigation_operator
Merge pull request #12450 from koic/make_style_collection_compact_aware_of_safe_navigation_operator
[Fix #12447] Make `Style/MapCompactWithConditionalBlock` aware of safe navigation operator
[Fix #12446] Make `Style/HashExcept` aware of safe navigation operator
[Fix #12445] Make `Style/CollectionCompact` aware of safe navigation operator
Merge pull request #12449 from masato-bkn/fix-layout-heredocindentation
Merge pull request #12443 from koic/fix_false_positives_for_style_hash_each_methods
Merge pull request #12431 from koic/tweak_autocorrect_for_style_map_to_hash
[Fix #12441] Fix false positives for `Style/HashEachMethods`
Merge pull request #12440 from ishigo974/master
Correction: Style/ArrayFirstLast documentation typo
[Fix #12434] Fix a false positive for `Lint/LiteralAssignmentInCondition`
[Fix #12435] Fix a false positive for `Lint/SelfAssignment`
[Fix #12429] Fix incorrect autocorrect for `Style/MapToHash`
Merge pull request #12432 from koic/fix_false_positive_for_lint_literal_assignment_in_condition
Fix false positive for `Lint/LiteralAssignmentInCondition`
Switch back the docs version
↗ ️ json (indirect, 2.7.0 → 2.7.1) · Repo · Changelog
Release Notes
2.7.1
What's Changed
Improved
- [DOC] RDoc for additions by @BurdetteLamar in #557
Fixed
- JSON.dump: handle unenclosed hashes regression by @casperisfine in #554
- Overload kwargs in JSON.dump by @k0kubun in #556
- Fix JSON.dump overload combination by @tompng in #558
Misc
New Contributors
Full Changelog: v2.7.0...v2.7.1
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 17 commits:
Bump up 2.7.1
Changelog for 2.7.1
Removed needless assignment
Merge pull request #560 from flori/unify-versions
Removed obsoleted version definition
Detect json version from version.rb
Merge pull request #559 from flori/remove-needless-encodings
cosmetics
The modern Ruby uses utf-8 encodings by default
[DOC] RDoc for additions (#557)
Merge pull request #558 from tompng/json_dump_args
Fix JSON.dump overload combination
Merge pull request #556 from k0kubun/dump-kwargs
Overload kwargs in JSON.dump
Merge pull request #554 from casperisfine/strict-backward-compat
JSON.dump: handle unenclosed hashes regression
lib/helper only needs on flori/json repo
↗ ️ regexp_parser (indirect, 2.8.2 → 2.8.3) · Repo · Changelog
Release Notes
2.8.3 (from changelog)
Fixed
- fixed scanner errors for insignificant leading zeros in numerical group refs
- e.g.
(a)\k<01>
,(a)\g<-01>
,(a)?(?(01)b|c)
- thanks to Markus Schirp for the report
Does any of this look wrong? Please let us know.
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 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)