Update rubocop 1.59.0 → 1.60.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.59.0 → 1.60.0) · Repo · Changelog
Release Notes
1.60.0
Bug fixes
- #12603: Fix an infinite loop error for
Style/MultilineTernaryOperator
when using a method call as a ternary operator condition with a line break between receiver and method. (@koic)- #12549: Fix a false positive for
Style/RedundantLineContinuation
when line continuations for multiline leading dot method chain with a blank line. (@koic)- #12610: Accept parentheses in argument calls with blocks for
Style/MethodCallWithArgsParentheses
omit_parentheses
style. (@gsamokovarov)- #12580: Fix an infinite loop error for
Layout/EndAlignment
when misaligned in singleton class assignments withEnforcedStyleAlignWith: variable
. (@koic)- #12548: Fix an infinite loop error for
Layout/FirstArgumentIndentation
when specifyingEnforcedStyle: with_fixed_indentation
ofLayout/ArrayAlignment
. (@koic)- #12236: Fix an error for
Lint/ShadowedArgument
when self assigning to a block argument infor
. (@koic)- #12569: Fix an error for
Style/IdenticalConditionalBranches
when usingif
...else
with identical leading lines that assign toself.foo
. (@koic)- #12437: Fix an infinite loop error for
EnforcedStyle: omit_parentheses
ofStyle/MethodCallWithArgsParentheses
withStyle/SuperWithArgsParentheses
. (@koic)- #12558: Fix an incorrect autocorrect for
Style/MapToHash
when usingmap.to_h
without receiver. (@koic)- #12179: Let
--auto-gen-config
generateExclude
whenMax
is overridden. (@jonas054)- #12574: Fix bug for unrecognized style in --auto-gen-config. (@jonas054)
- #12542: Fix false positive for
Lint/MixedRegexpCaptureTypes
when using look-ahead matcher. (@marocchino)- #12607: Fix a false positive for
Style/RedundantParentheses
when regexp literal attempts to match against a parenthesized condition. (@koic)- #12539: Fix false positives for
Lint/LiteralAssignmentInCondition
when a collection literal contains non-literal elements. (@koic)- #12571: Fix false positives for
Naming/BlockForwarding
when using explicit block forwarding in block method. (@koic)- #12537: Fix false positives for
Style/RedundantParentheses
whenAllowInMultilineConditions: true
ofStyle/ParenthesesAroundCondition
. (@koic)- #12578: Fix false positives for
Style/ArgumentsForwarding
when rest arguments forwarding to a method in block. (@koic)- #12540: Fix false positives for
Style/HashEachMethods
when rest block argument ofEnumerable#each
method is used. (@koic)- #12529: Fix false positives for
Style/ParenthesesAroundCondition
. (@koic)- #12556: Fix false positives for
Style/RedundantParentheses
when parentheses are used around a semantic operator in expressions within assignments. (@koic)- #12541: Fix false negative in
Style/ArgumentsForwarding
when a block is forwarded but other args aren't. (@dvandersluis)- #12581: Handle trailing line continuation in
Layout/LineContinuationLeadingSpace
. (@eugeneius)- #12601: Make
Style/EachForSimpleLoop
accept block with no parameters. (@koic)Changes
- #12535: Allow --autocorrect with --display-only-fail-level-offenses. (@naveg)
- #12572: Follow a Ruby 3.3 warning for
Security/Open
whenopen
with a literal string starting with a pipe. (@koic)- #12453: Make
Style/RedundantEach
aware of safe navigation operator. (@koic)- #12233: Make
Style/SlicingWithRange
aware of redundant and beginless range. (@koic)- #12388: Reject additional 'expanded'
EnforcedStyle
options when--no-auto-gen-enforced-style
is given. (@kpost)- #12593: Require Parser 3.3.0.2 or higher. (@koic)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗ ️ parallel (indirect, 1.23.0 → 1.24.0) · Repo
Commits
See the full diff on Github. The new version differs by 5 commits:
↗ ️ parser (indirect, 3.2.2.4 → 3.3.0.4) · Repo · Changelog
Release Notes
3.3.0.3 (from changelog)
Bugs fixed:
- lexer.rl: accept tabs before closing heredoc delimiter (#990) (Ilya Bylich)
3.3.0.2 (from changelog)
Bugs fixed:
- Fix an error when using heredoc with non-word delimiters (#987) (Koichi ITO)
3.3.0.1 (from changelog)
Bugs fixed:
- Supports Ruby 2.0+ runtime (#986) (Koichi ITO)
3.3.0.0 (from changelog)
API modifications:
- current.rb: mark 3.3 branch as stable (#984) (Ilya Bylich)
- ruby33.y: extract string_dend (#969) (Ilya Bylich)
- lexer.rl: treat numparams as locals (#968) (Ilya Bylich)
- ruby33.y: extract words_sep (#967) (Ilya Bylich)
- literal.rb: match heredoc identifier from end of line (#965) (Ilya Bylich)
- ruby33.y: extract {endless_command,endless_arg} rules (#964) (Ilya Bylich)
- Bump Racc to 1.7.3 (#954) (Koichi ITO)
Features implemented:
- ruby33.y: reject ambiguous anonymous arguments (#983) (Ilya Bylich)
- ruby33.y: extract arg_splat rule. (#981) (Ilya Bylich)
- builder.rb: warn
it
in a block with no ordinary params. (#980) (Ilya Bylich)- builder.rb: extract named captures only from static regexes. (#979) (Ilya Bylich)
- ruby33.y: accept expr_value in sclass definition. (#978) (Ilya Bylich)
- ruby33.y: extract p_in_kwarg (#977) (Ilya Bylich)
- ruby33.y: extract p_assoc and p_in rules (#976) (Ilya Bylich)
- ruby33.y: reject invalid gvar as symbol (#974) (Ilya Bylich)
- ruby33.y: properly restore in_defined flag, extract begin_defined rule (#973) (Ilya Bylich)
- builder.rb: reject multi-char gvar names starting with 0 (#972) (Ilya Bylich)
- ruby33.y: allow semicolon in parenthesis at the first argument of command call (#971) (Ilya Bylich)
- ruby33.y: parse qualified const with brace block as a method call (#970) (Ilya Bylich)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 41 commits:
Update changelog.
Bump version.
+ Register a Ruby 3.4 parser (#991)
Update changelog.
Update changelog.
Bump version.
- lexer.rl: accept tabs before closing heredoc delimiter (#990)
Update changelog.
Update changelog.
Bump version.
- Fix an error when using heredoc with non-word delimiters (#987)
Update changelog.
Update changelog.
Bump version.
- Supports Ruby 2.0+ runtime (#986)
Fix incorrect required_ruby_version (#985)
Update changelog.
Bump version.
* current.rb: mark 3.3 branch as stable (#984)
+ ruby33.y: reject ambiguous anonymous arguments (#983)
+ ruby33.y: extract arg_splat rule. (#981)
+ builder.rb: warn `it` in a block with no ordinary params. (#980)
+ builder.rb: extract named captures only from static regexes. (#979)
+ ruby33.y: accept expr_value in sclass definition. (#978)
+ ruby33.y: extract p_in_kwarg (#977)
+ ruby33.y: extract p_assoc and p_in rules (#976)
document running no "syntax checks for block exits" (added first in MRI 3.3.0) (#975)
+ ruby33.y: reject invalid gvar as symbol (#974)
+ ruby33.y: properly restore in_defined flag, extract begin_defined rule (#973)
+ builder.rb: reject multi-char gvar names starting with 0 (#972)
+ ruby33.y: allow semicolon in parenthesis at the first argument of command call (#971)
+ ruby33.y: parse qualified const with brace block as a method call (#970)
* ruby33.y: extract string_dend (#969)
* lexer.rl: treat numparams as locals (#968)
* ruby33.y: extract words_sep (#967)
add tests for duplicate variable name check with p_rest (#966)
* literal.rb: match heredoc identifier from end of line (#965)
* ruby33.y: extract {endless_command,endless_arg} rules (#964)
* Bump Racc to 1.7.3 (#954)
Replace whitequark blog links with archive URLs (#948)
Update changelog.
↗ ️ regexp_parser (indirect, 2.8.3 → 2.9.0) · Repo · Changelog
Release Notes
2.9.0 (from changelog)
Added
- all expressions now respond to
#negative?
/#negated?
- previously only sets, props, and posix classes did
- implemented
#negative?
/#negated?
for more applicable expressions
\B
,\D
,\H
,\S
,\W
,(?!...)
,(?<!...)
Fixed
- fixed missing support for grapheme cluster break unicode properties
- e.g.
/\p{Grapheme_Cluster_Break=Extend}/
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 7 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)