Update rubocop 1.80.2 → 1.81.1 (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.80.2 → 1.81.1) · Repo · Changelog
Release Notes
1.81.1
Bug fixes
- #14563: Fix incorrect autocorrection for
Lint/DeprecatedOpenSSLConstant
whenCipher
appears twice. (@koic)Changes
- #14565: Allow multiline method chain for
Style/NumberedParameters
andStyle/ItBlockParameter
withEnforcedStyle: allow_single_line
when the block itself is on a single line. (@earlopain)
1.81.0
New features
- #14512: Add
Style/ArrayIntersectWithSingleElement
cop. (@r7kamura)- #10971: Support
EnforcedStyleForMultiline: diff_comma
inStyle/TrailingCommaInArguments
. (@akouryy)Bug fixes
- #14560: Fix an error for
Style/NilComparison
cop when using thevar.==(nil)
andvar.===(nil)
syntax. (@viralpraxis)- #14535: Fix autocorrect for
Style/ExplicitBlockArgument
when there are two methods that share the same implementation. (@earlopain)- #14527: Fix false negatives for
Style/NumberedParameters
andStyle/ItBlockParameter
when using multiline method chain withEnforcedStyle: allow_single_line
. (@koic)- #14522: Fix false negatives for
Layout/MultilineOperationIndentation
when using indented code on LHS of equality operator in modifier method definition. (@koic)- #14496: Fix false negatives for
Layout/EmptyLineBetweenDefs
forAllowAdjacentOneLineDefs: false
andDefLikeMacros
that take no block. (@earlopain)- #14553: Fix false positives when
EnforcedStyle: allowed_in_returns
and!!
appears across multiple lines in return position. (@koic)- #14557: Fix false positives for
Style/RedundantParentheses
when parentheses are used around a one-linerescue
expression as a condition. (@koic)- #14525: Fix false positives for
Style/RedundantRegexpEscape
when an escaped variable sigil follows#
(e.g.,/#\@foo/
,/#\@@bar/
,/#\$baz/
). (@koic)- #14529: Fix false negative in
Layout/RescueEnsureAlignment
with a block whose send node is split over multiple lines. (@dvandersluis)- #14528: Fix
Style/RedundantFormat
when the format string has a variable width that isn't given as a literal value. (@dvandersluis)- #14541: Fix gemspec parsing error when
ParserEngine: parser_prism
is configured in a base config file. (@sudoremo)- #14544: Fix an incorrect autocorrect for
Lint/Void
when using a return value in assignment method definition. (@koic)- #14543: Fix an incorrect autocorrect for
Style/RedundantRegexpArgument
when using escaped single quote character. (@koic)- #14540: Fix an incorrect autocorrect for
Style/UnlessElse
when usingunless
withthen
. (@koic)- #14507: Fix the built-in Ruby LSP add-on not restarting when config files (
.rubocop.yml
,.rubocop_todo.yml
) change. (@earlopain)- #14514: Fix the built-in Ruby LSP add-on not respecting
.rubocop
config file. (@earlopain)- #14508: Fix the built-in Ruby LSP add-on getting in an irrecoverable state when the config is invalid on startup. (@earlopain)
- #14534: Prevent
Layout/LineLength
autocorrection from splitting a block if its receiver contains a heredoc. (@dvandersluis)- #14497: Fix a false positive for
Lint/ShadowedArgument
when assigning inside arescue
block. (@earlopain)Changes
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 61 commits:
Cut 1.81.1
Update Changelog
[Fix #14563] Fix an incorrect autocorrect for `Lint/DeprecatedOpenSSLConstant`
Allow implicit block args when the block itself is on one line only
[Docs] Document `--editor-mode` in a comment`
Reset the docs version
Cut 1.81
Update Changelog
Fix an error for `Style/NilComparison` cop
Fix an error for `InternalAffairsOnSendWithoutOnCSend` with `alias_method` and no arguments
Merge pull request #14551 from Earlopain/empty-line-def-macro-no-block
[Fix #14496] Fix false negatives for `Layout/EmptyLineBetweenDefs` with `AllowAdjacentOneLineDefs: false` for `DefLikeMacros` that take no block
[Fix #14557] Fix false positives for `Style/RedundantParentheses`
[Fix #14541] Fix gemspec parsing error when parser_prism is configured
[Fix #10971] Add `diff_comma` option to Style/TrailingCommaInArguments
[Fix #14544] Fix an incorrect autocorrect for `Lint/Void`
[Fix #14553] Fix false positives for `Style/DoubleNegation`
Merge pull request #14546 from dvandersluis/any-str-sym-type
Use `Node#any_str_type?` and `Node#any_sym_type?` instead of explicitly using their component types
Merge pull request #14549 from koic/fix_incorrect_autocorrect_for_style_redundant_regexp_argument_cop
Merge pull request #14542 from koic/fix_incorrect_autocorrect_for_style_unless_else
[Fix #14543] Fix an incorrect autocorrect for `Style/RedundantRegexpArgument`
[Fix #14540] Fix an incorrect autocorrect for `Style/UnlessElse`
Merge pull request #14536 from dvandersluis/issue/14534
[Fix #14534] Prevent `Layout/LineLength` autocorrection from splitting a block if its receiver contains a heredoc
Merge pull request #14537 from Earlopain/explicit-block-duplicate-implementation
[Fix #14535] Fix autocorrect for `Style/ExplicitBlockArgument` when there are two methods that share the same implementation
Merge pull request #14532 from dvandersluis/issue/14529
[Fix #14529] Fix false negative in `Layout/RescueEnsureAlignment` with a block whose send node is split over multiple lines
Merge pull request #14531 from dvandersluis/issue/14528
[Fix #14528] Fix `Style/RedundantFormat` when the format string has a variable width that isn't given as a literal value
[Doc] Add examples for `Naming/PredicateMethod`
Fix false negatives for `Style/NumberedParameters` and `ItBlockParameter`
Add support for LSP positionEncoding 'utf-8' and 'utf-32'
Merge pull request #14525 from koic/fix_false_positives_for_style_redundant_regexp_escape
Fix false positives for `Style/RedundantRegexpEscape`
Merge pull request #14526 from Earlopain/fix-ci-2.7
Fix Ruby 2.7 CI
Merge pull request #14524 from koic/fix_false_negatives_for_layout_multiline_operation_indentation
[Fix #14522] Fix false negatives for `Layout/MultilineOperationIndentation`
Merge pull request #14523 from viralpraxis/fix-lint-shadowed-exception-spec
Fix `Lint/ShadowedException` spec formatting
Merge pull request #14513 from Earlopain/shadowing-in-rescue
Add `Style/ArrayIntersectWithSingleElement` cop
Merge pull request #14514 from Earlopain/ruby-lsp-dot-rubocop-config
Merge pull request #14515 from rubocop/dependabot/github_actions/actions/stale-10
Bump actions/stale from 9 to 10
Fix the built-in Ruby LSP add-on not respecting `.rubocop` config file
[Fix #14497] Fix a false positive for `Lint/ShadowedArgument` when assigning inside a `rescue` block
Merge pull request #14508 from Earlopain/ruby-lsp-errors
Gracefully handle invalid configs during LSP addon startup
Merge pull request #14510 from Earlopain/ruby-lsp-addon-version
Merge pull request #14509 from Earlopain/ruby-lsp-runtime-adapter-include
Set a version for the ruby lsp addon
Remove unnecessary include in the lsp runtime adapter
Use RuboCop Performance 1.26 for development
Merge pull request #14507 from Earlopain/ruby-lsp-config-reload
Fix the built-in Ruby LSP add-on not restarting when config files (`.rubocop.yml`, `.rubocop_todo.yml`) change
Merge pull request #14506 from Earlopain/lsp-addon-todo-file
Fix the buildin Ruby LSP add-on not restarting when `.rubocop_todo.yml` changes
Reset the docs version
↗️ json (indirect, 2.13.2 → 2.15.0) · Repo · Changelog
Release Notes
2.15.0
What's Changed
JSON::Coder
callback now receive a second argument to convey whether the object is a hash key.- Tuned the floating point number generator to not use scientific notation as aggressively.
Full Changelog: v2.14.1...v2.15.0
2.14.1
What's Changed
- Fix
IndexOutOfBoundsException
in the JRuby extension when encoding shared strings.Full Changelog: v2.14.0...v2.14.1
2.14.0
What's Changed
- Add new
allow_duplicate_key
generator options. By default a warning is now emitted when a duplicated key is encountered.
Injson 3.0
an error will be raised.>> Warning[:deprecated] = true >> puts JSON.generate({ foo: 1, "foo" => 2 }) (irb):2: warning: detected duplicate key "foo" in {foo: 1, "foo" => 2}. This will raise an error in json 3.0 unless enabled via `allow_duplicate_key: true` {"foo":1,"foo":2} >> JSON.generate({ foo: 1, "foo" => 2 }, allow_duplicate_key: false) detected duplicate key "foo" in {foo: 1, "foo" => 2} (JSON::GeneratorError)- Fix
JSON.generate
strict: true
mode to also restrict hash keys.- Fix
JSON::Coder
to also invoke block for hash keys that aren't strings nor symbols.- Fix
JSON.unsafe_load
usage with proc- Fix the parser to more consistently reject invalid UTF-16 surogate pairs.
Full Changelog: v2.13.2...v2.14.0
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.
↗️ prism (indirect, 1.4.0 → 1.5.1) · Repo · Changelog
Release Notes
1.5.1
Changed
- Revert of a bug introduced with static literal flags on interpolated strings.
1.5.0
Added
- Add
Prism::Translation::ParserCurrent
.- Add
Integer::to_u32_digits
for the Rust API.- Add
pm_comment_type_t
field for the Rust API.- Support leading logical operators for CRuby 3.5+.
Changed
- Mark Prism as ractor-safe.
- Enforce a minimum version for the parser translation layer.
- Many fixes to the parser translation layer.
- Accept a newline after the
defined?
keyword.- Reject
true && not true
.- Make
it = it
assign nil to match parse.y behavior [Bug #21139].- Some fixes to the ruby parser translation layer.
- Ensure call nodes have the correct ending location.
- Reject
foo && return bar
.
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.
↗️ regexp_parser (indirect, 2.11.2 → 2.11.3) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 7 commits:
↗️ rubocop-ast (indirect, 1.46.0 → 1.47.1) · Repo · Changelog
Release Notes
1.47.1 (from changelog)
Bug fixes
- #386: Fix parsing of node patterns that match against the empty string. (@earloapin)
1.47.0 (from changelog)
New features
- #387: Add
Node#any_sym_type?
to matchsym
anddsym
types. (@dvandersluis)- #328: Add
Node#any_str_type?
to matchstr
,dstr
, andxstr
types. (@dvandersluis)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 16 commits:
Cut 1.47.1
Update Changelog
Allow to match against the empty string
Restore docs/antora.yml
Cut 1.47.0
Update Changelog
Add `Node#any_sym_type?` to match `sym` and `dsym` types
Fix build error by keeping `prism` below 1.5.0 for older RuboCop
Add `Node#any_str_type?` to match `str`, `dstr`, and `xstr` types
Run codespell with `bundle exec rake`
Remove misspell from CI
Bump actions/checkout from 4 to 5 (#384)
Remove CodeClimate from CI (#383)
Suppress `Layout/EmptyLinesAfterModuleInclusion`'s offense
Add the relelase note for v1.46.0
Restore docs/antora.yml
↗️ unicode-display_width (indirect, 3.1.5 → 3.2.0) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 2 commits:
↗️ unicode-emoji (indirect, 4.0.4 → 4.1.0) · Repo · Changelog
Release Notes
4.1.0 (from changelog)
- Unicode 17
- Update valid subdivisions to CLDR 47 (no changes)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 6 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)