Update RuboCop to 1.81.7 and fix style offenses #2625
Merged
+25
−20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update RuboCop to 1.81.7 and Fix Style Offenses
Summary
This PR updates RuboCop and related gems to their latest versions and fixes style offenses identified by the updated linter.
Changes
Dependency Updates
1.76.2→1.81.71.25.0→1.26.13.6.0→3.8.0Code Style Fixes
extend Forwardabledeclarations (RuboCop style requirement)lib/grape/api.rblib/grape/api/instance.rblib/grape/middleware/stack.rblib/grape/util/cache.rbspec/grape/api/deeply_included_options_spec.rbspec/grape/api/nested_helpers_spec.rbspec/grape/api_spec.rbspec/grape/dsl/parameters_spec.rbspec/grape/validations/params_documentation_spec.rbspec/grape/validations_spec.rbspec/grape/validations/params_scope_spec.rbRuboCop Todo Updates
.rubocop_todo.ymlwith RuboCop 1.81.7RSpec/RepeatedExampleGroupDescription: 10 → 8 offensesRSpec/StubbedMock: 4 → 2 offensesRSpec/SubjectStub: 118 → 32 offenses (significant improvement!)RSpec/VerifiedDoubles: 22 → 20 offensesRSpec/LeakyLocalVariable(1 offense)Impact
Testing