Skip to content

Update rubocop to 1.86.1 and standard-performance to 1.9.0#806

Closed
camilopayan wants to merge 2 commits into
mainfrom
update-rubocop-1.86.1
Closed

Update rubocop to 1.86.1 and standard-performance to 1.9.0#806
camilopayan wants to merge 2 commits into
mainfrom
update-rubocop-1.86.1

Conversation

@camilopayan
Copy link
Copy Markdown
Contributor

Updates RuboCop from 1.84.0 to 1.86.1.
Updates standard-performance to 1.9.0.

New cops

These cops were added and need a configuration decision before tests will pass:

Cop Description PR
Lint/DataDefineOverride Checks for Data.define overriding existing methods. #14773
Lint/UnreachablePatternBranch Checks for unreachable pattern branches in case expressions. #14925
Style/FileOpen Checks for File.open without a block. #14942
Style/MapJoin Checks for map { ... }.join and suggests map_join or efficient alternatives. #14939
Style/OneClassPerFile Checks that each file contains only one class definition. #14924
Style/PartitionInsteadOfDoubleSelect Checks for multiple select calls that can be replaced with partition. #14923
Style/PredicateWithKind Checks for predicate methods used with kind_of? or is_a?. #14811
Style/ReduceToHash Checks for reduce or inject used to build a hash. #14938
Style/RedundantMinMaxBy Checks for redundant min_by or max_by calls. #14812
Style/RedundantStructKeywordInit Checks for redundant keyword_init: true in Struct.new. #13501
Style/SelectByKind Checks for select calls that can be replaced with grep. #14808
Style/SelectByRange Checks for select calls that can be replaced with range slicing. #14810
Style/TallyMethod Checks for manual tallying logic that can be replaced with Enumerable#tally. #14922
Style/EmptyClassDefinition Enforces consistent style for empty classes. #14895
Style/HashLookupMethod Enforces preference between Hash#[] and Hash#fetch. #14977

Changed cops

These existing cops had behavioral changes:

Cop Change PR
Style/OneClassPerFile Now excludes spec/**/* and test/**/* by default. #15005
Style/RedundantStructKeywordInit Disabled by default. #15063
Style/EndlessMethod Updated to consider receivers. #14917
Style/RedundantInterpolationUnfreeze Add support for String.new with interpolated strings. #14956
Style/RedundantParentheses Register redundant parentheses around block bodies. #14955

The config/ YAML files have not been updated for any of the above cops.
Tests are expected to fail until those configurations are added in a follow-up.

czeise and others added 2 commits May 12, 2026 13:12
Co-Authored-By: Camilo Payan <camilo.payan@testdouble.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants