Update rubocop: 1.50.2 → 1.51.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.50.2 → 1.51.0) · Repo · Changelog
Release Notes
1.51.0
New features
- #11819: Add autocorrection for
Lint/AmbiguousBlockAssociation
. (@r7kamura)- #11597: Add autocorrection for
Lint/UselessAssignment
. (@r7kamura)- #11848: Add autocorrection for
Lint/Void
. (@r7kamura)- #11851: Add autocorrection for
Naming/MemoizedInstanceVariableName
. (@r7kamura)- #11856: Add autocorrection for
Style/CombinableLoops
. (@r7kamura)- #11824: Add autocorrection for
Lint/TopLevelReturnWithArgument
. (@r7kamura)- #11869: Add new
Style/ExactRegexpMatch
cop. (@koic)- #11814: Make
Style/CollectionCompact
aware ofdelete_if
. (@koic)- #11866: Make
Style/Semicolon
aware of redundant semicolons in string interpolation braces. (@koic)Bug fixes
- #11812: Fix a false negative for
Style/Attr
when usingattr
and method definitions. (@koic)- #11861: Fix a false positive for
Layout/SpaceAfterSemicolon
when no space between a semicolon and a closing brace of string interpolation. (@koic)- #11830: Fix a false positive for
Lint/IncompatibleIoSelectWithFiberScheduler
. (@koic)- #11846: Fix a false positive for
Lint/RedundantStringCoercion
when usingto_s(argument)
inputs
argument. (@koic)- #11865: Fix an error for
Naming/ConstantName
when assigning a constant from an empty branch ofelse
. (@koic)- #11844: Fix a false positive for
Style/RedundantLineContinuation
when using line concatenation for assigning a return value and without argument parentheses. (@koic)- #11808: Fix a false positive for
Style/RegexpLiteral
when using a regexp starts with equal as a method argument. (@koic)- #11822: Fix an error for
Layout/SpaceInsideBlockBraces
when a method call with a multiline block is used as an argument. (@koic)- #11849: Fix an error for
Style/ConditionalAssignment
whenEnforcedStyle: assign_inside_condition
and using emptycase
condition. (@koic)- #11967: Fix error for
Style/IfInsideElse
when a deep nested multilineif...then...elsif...else...end
. (@koic)- #11842: Fix an error for
Style/IfUnlessModifier
when using multipleif
modifier in the long one line. (@koic)- #11835: Fix an error for
Style/RequireOrder
when multiplerequire
are not sorted. (@koic)- #11809: Fix an incorrect autocorrect for
Naming/RescuedExceptionsVariableName
when exception variable is referenced afterrescue
statement. (@koic)- #11852: Fix an incorrect autocorrect for
Style/EvalWithLocation
when usingeval
without line number and with parenthesized method call. (@koic)- #11862: Fix an incorrect autocorrect for
Style/GuardClause
when usingraise
inelse
branch in a one-liner withthen
. (@koic)- #11868: Fix a false positive for
Style/HashExcept
when method's receiver/argument is not the same as block key argument. (@fatkodima)- #11858: Fix false positives when using source comments in blocks. (@reitermarkus)
- #11510: Fix
Lint/UselessAssignment
false positive when using numbered block parameters. (@sambostock)- #11872: Fix
Gemspec/DevelopmentDependencies
not trigger when add_development_dependency has more then one arguments. (@Bhacaz)- #11820: Fix
Lint/EmptyConditionalBody
false-positives for commented emptyelsif
body. (@r7kamura)Changes
- #11859: Add rubocop-factory_bot to suggested extensions. (@ydah)
- #10791: (Breaking) Drop runtime support for Ruby 2.6 and JRuby 9.3 (CRuby 2.6 compatible). (@koic)
- #11826: Exclude
**/*.jb
fromLint/TopLevelReturnWithArgument
. (@r7kamura)- #11871: Mark
Style/DataInheritance
as unsafe autocorrect,Style/OpenStructUse
as unsafe, andSecurity/CompoundHash
as unsafe. (@koic)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 70 commits:
Cut 1.51 to celebrate RubyKaigi 2023
Update Changelog
Fix a false positive for `Lint/IncompatibleIoSelectWithFiberScheduler`
Add new `Style/ExactRegexpMatch` cop
Mark some cops as unsafe
Merge pull request #11872 from Bhacaz/fix_development_dependencies_cop_with_arguments
Fix Gemspec/DevelopmentDependencies not trigger when add_development_dependency has more then one arguments
Merge pull request #11870 from fatkodima/fix-hash_except-incorrect-arguments
Fix a false positive for when method's receiver/argument is not the same as block key argument
Fix an error for `Style/IfInsideElse`
Make `Style/Semicolon` aware of string interpolation
Merge pull request #11510 from sambostock/useless-assignment-bug
Fix `Lint/UselessAssignment` false positive
Merge pull request #11865 from koic/fix_a_false_positive_for_naming_constant_name
Fix an error for `Naming/ConstantName`
[Fix #11861] Fix a false positive for `Layout/SpaceAfterSemicolon`
Merge pull request #11863 from koic/fix_an_incorrect_autocorrect_for_style_guard_clause
[Fix #11862] Fix an incorrect autocorrect for `Style/GuardClause`
Merge pull request #11859 from ydah/add-rubocop-factory_bot-to-suggested-extensions
Add rubocop-factory_bot to suggested extensions and extension doc
Add dev docs on preventing correction clobbering
Merge pull request #11858 from reitermarkus/patch-2
Fix `find_end_line` for blocks.
Fix a build error
[Fix #11597] Add autocorrection for `Lint/UselessAssignment`
Simplify `inspect` output
[Fix #11849] Fix an error for `Style/ConditionalAssignment`
Add autocorrection for `Style/CombinableLoops`
Use RuboCop RSpec 2.22
Merge pull request #11855 from r7kamura/style-combinable-loops-refactor
Remove unnecessary `Symbol#to_s` used for Ruby 2.6- compatibility
Merge pull request #11853 from koic/fix_an_incorrect_autocorrect_for_style_eval_with_location
[Fix #11852] Fix an incorrect autocorrect for `Style/EvalWithLocation`
Add autocorrection for `Lint/Void`
Add autocorrection for `Naming/MemoizedInstanceVariableName`
Use RuboCop RSpec 2.21
[Fix #11846] Fix a false positive for `Lint/RedundantStringCoercion`
[Fix #11844] Fix a false positive for `Style/RedundantLineContinuation`
Fix an error for `Style/IfUnlessModifier`
Merge pull request #11835 from koic/fix_an_error_for_style_require_order
Fix an error for `Style/RequireOrder`
[Doc] Tweak command prompt character
Merge pull request #11826 from r7kamura/lint-top-level-return-exclude
Merge pull request #11824 from r7kamura/lint-top-level-return-autocorrect
Add autocorrection for `Lint/TopLevelReturnWithArgument`
Exclude `**/*.jb` from `Lint/TopLevelReturnWithArgument`
Merge pull request #11823 from koic/fix_an_error_for_layout_space_inside_block_braces
Merge pull request #11816 from thomthom/patch-1
Add rubocop-sketchup to list of third party extensions.
Merge pull request #11821 from r7kamura/fix-empty-conditional-body
[Fix #11820] Fix `Lint/EmptyConditionalBody` false-positives for commented empty `elsif` body
[Fix #11822] Fix an error for `Layout/SpaceInsideBlockBraces`
Merge pull request #11819 from r7kamura/ambiguous-block-association-autocorrection
Add autocorrection for `Lint/AmbiguousBlockAssociation`
Merge pull request #11818 from koic/use_test_queue_for_rspec4
Use test-queue for RSpec 4.0 (dev)
[Doc] Syntax highlight for `Style/Copyright`
[Fix #11812] Fix a false negative for `Style/Attr`
Make `Style/CollectionCompact` aware of `delete_if`
Specify rspec/rspec-metagem instead of rspec/rspec
[Doc] Remove incorrect text highlighting for `Style/Documentation`
[Doc] Fix the doc for `Style/ColonMethodCall`
Merge pull request #11810 from koic/fix_an_incorrect_autocorrect_for_naming_rescued_exceptions_variable_name
[Doc] Tweak example layout for `Style/InvertibleUnlessCondition`
Remove incorrect examples for `Style/InvertibleUnlessCondition`
[Fix #11809] Fix an incorrect autocorrect for `Naming/RescuedExceptionsVariableName`
Use RuboCop RSpec 2.20
Fix a false positive for `Style/RegexpLiteral`
Drop Ruby 2.6 runtime support
Switch back the docs version
↗ ️ parallel (indirect, 1.22.1 → 1.23.0) · Repo
Commits
See the full diff on Github. The new version differs by 10 commits:
v1.23.0
Merge pull request #336 from grosser/grosser/filter-map
add filter-map
Merge pull request #333 from M-Yamashita01/fix-inline-method-in-processor-count
Inline the methods of ProcessorCount module.
Merge pull request #331 from msasaki666/add-ruby-3.2-to-ci
add ruby 3.2 to ci
Merge pull request #330 from grosser/grosser/docs
small docs fix
improve ractor docs
↗ ️ parser (indirect, 3.2.2.0 → 3.2.2.1) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 4 commits:
↗ ️ rubocop-ast (indirect, 1.28.0 → 1.28.1) · Repo · Changelog
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)