Skip to content

Update dependency rubocop-rspec to v3.10.2#2712

Merged
diemol merged 3 commits into
trunkfrom
renovate/rubocop-rspec-3.x-lockfile
Jul 16, 2026
Merged

Update dependency rubocop-rspec to v3.10.2#2712
diemol merged 3 commits into
trunkfrom
renovate/rubocop-rspec-3.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
rubocop-rspec (changelog) 3.7.03.10.2 age confidence

Release Notes

rubocop/rubocop-rspec (rubocop-rspec)

v3.10.2

Compare Source

  • Fix false positives for RSpec/SpecFilePathFormat when CustomTransform maps a namespace to an empty string. ([@​sakuro])
  • Fix RSpec/MatchWithSimpleRegex to ignore regular expressions with options. ([@​bquorning])

v3.10.1

Compare Source

  • Add Strict option to RSpec/SharedContext to flag shared_context whenever it contains examples, even alongside setup code. ([@​Darhazer])
  • Add NegatedMatcher configuration option RSpec/ExpectChange. ([@​Darhazer])
  • Fix RSpec/MatchWithSimpleRegex to ignore regular expressions with interpolations. ([@​bquorning])

v3.10.0

Compare Source

  • Add new cop RSpec/MatchWithSimpleRegex to suggest include matcher when match is used with simple string literals without regex-specific features. ([@​bquorning])
  • Add new cop RSpec/DiscardedMatcher to detect matchers in void context (e.g. missing .and between compound matchers). ([@​ydakuka])
  • Add support for itblock nodes. ([@​Darhazer])
  • RSpec/ScatteredLet now preserves the order of lets during auto-correction. ([@​Darhazer])
  • Fix a false negative for RSpec/EmptyLineAfterFinalLet inside shared_examples / include_examples / it_behaves_like blocks. ([@​Darhazer])
  • Fix a false positive for RSpec/ContainExactly when contain_exactly has multiple splat arguments. ([@​ydah])
  • Add autocorrect support for RSpec/SubjectDeclaration. ([@​eugeneius])
  • Fix false negatives for RSpec/SpecFilePathFormat when the expected class path only partially matches a path segment. ([@​ydah])
  • Fix a false negative for RSpec/ExpectActual when the matcher takes no arguments (e.g. expect("foo").to be_present, expect(1).to be). ([@​cvx])

v3.9.0

Compare Source

  • Fix a false positive for RSpec/LeakyLocalVariable when variables are used only in example metadata (e.g., skip messages). ([@​ydah])
  • Fix a false positive for RSpec/ScatteredSetup when the hook is defined inside a class method. ([@​d4rky-pl])
  • Fix a false positive for RSpec/DescribedClass inside dynamically evaluated blocks (class_eval, module_eval, instance_eval, class_exec, module_exec, instance_exec). ([@​sucicfilip])
  • Add new cop RSpec/Output. ([@​kevinrobell-st])

v3.8.0

Compare Source

  • Add new cop RSpec/LeakyLocalVariable. ([@​lovro-bikic])
  • Bump RuboCop requirement to +1.81. ([@​ydah])
  • Fix a false positive for RSpec/LetSetup when let! used in outer scope. ([@​ydah])
  • Fix a false positive for RSpec/ReceiveNever cop when allow(...).to receive(...).never. ([@​ydah])
  • Fix detection of nameless doubles with methods in RSpec/VerifiedDoubles. ([@​ushi-as])
  • Improve an offense message for RSpec/RepeatedExample cop. ([@​ydah])
  • Let RSpec/SpecFilePathFormat leverage ActiveSupport inflections when configured. ([@​corsonknowles], [@​bquorning])

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for selenium-dev ready!

Name Link
🔨 Latest commit 45908cb
🔍 Latest deploy log https://app.netlify.com/projects/selenium-dev/deploys/6a58929654a3880007a2b3ae
😎 Deploy Preview https://deploy-preview-2712--selenium-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

rubocop-rspec 3.10.2 adds RSpec/Output, which flags the puts calls in
finders_spec.rb. That file is documentation example code (skip:
'these are just examples, not actual tests') referenced by pinned
line numbers across multiple gh-codeblock docs, so autocorrecting it
would break those references.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@qodo-code-review

qodo-code-review Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. Broad cop exclusion ✓ Resolved 🐞 Bug ⚙ Maintainability
Description
examples/ruby/.rubocop.yml excludes the entire spec/elements/finders_spec.rb file from
RSpec/Output, which permanently disables this lint guardrail for any future (possibly non-skipped)
specs added to that file. The current output use is limited to two puts lines inside a skipped
example context, so a narrower, local suppression would preserve coverage for the rest of the file.
Code

examples/ruby/.rubocop.yml[R34-37]

+RSpec/Output:
+  Exclude:
+    - spec/elements/finders_spec.rb
+
Evidence
The PR adds a file-wide RSpec/Output exclusion for spec/elements/finders_spec.rb. That file
contains the only puts usages (and they’re inside a skipped context), and RuboCop is run from
examples/ruby, so this exclusion directly reduces lint coverage for that file going forward.

examples/ruby/.rubocop.yml[34-37]
examples/ruby/spec/elements/finders_spec.rb[8-35]
.github/workflows/ruby-examples.yml[118-133]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`RSpec/Output` is disabled for the entire `spec/elements/finders_spec.rb` via `.rubocop.yml`, which makes it easy for future edits to introduce unintended console output in real tests without RuboCop catching it.

## Issue Context
The excluded file currently contains two `puts` statements inside a skipped context (example-only code). This can be handled with a scoped `# rubocop:disable RSpec/Output` / `# rubocop:enable RSpec/Output` around those lines (or by removing/replacing `puts`) so the cop still runs on the rest of the file.

## Fix Focus Areas
- examples/ruby/.rubocop.yml[34-37]
- examples/ruby/spec/elements/finders_spec.rb[26-35]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Qodo Logo

Comment thread examples/ruby/.rubocop.yml Outdated
Excluding the whole file let future edits introduce unintended
console output elsewhere in the file without RuboCop catching it.
Wrap only the two examples with puts calls in
rubocop:disable/enable, matching the pattern already used in
safari_spec.rb, and update the affected gh-codeblock line ranges in
the finders docs (en, ja, pt-br, zh-cn) since two lines were added.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown
Contributor

Code review by qodo was updated up to the latest commit 45908cb

@diemol
diemol merged commit 1f96b97 into trunk Jul 16, 2026
11 checks passed
@diemol
diemol deleted the renovate/rubocop-rspec-3.x-lockfile branch July 16, 2026 08:45
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.

1 participant