Skip to content

Document explicit receiver in .simplecov file#1190

Merged
sferik merged 1 commit into
simplecov-ruby:mainfrom
bquorning:explicit-SimpleCov-receiver-in-dot-simplecov-documentation
May 26, 2026
Merged

Document explicit receiver in .simplecov file#1190
sferik merged 1 commit into
simplecov-ruby:mainfrom
bquorning:explicit-SimpleCov-receiver-in-dot-simplecov-documentation

Conversation

@bquorning
Copy link
Copy Markdown
Contributor

@bquorning bquorning commented May 26, 2026

In the next version of simplecov, all method calls in .simplecov must have an explicit SimpleCov receiver.

I tested out the recent changes in rubocop/rubocop-rspec#2177 and found that removing the deprecated SimpleCov.start and not adding an explicit receiver ended up in warnings about various methods not being defined on main.

In the next version of simplecov, all method calls in .simplecov must
have an explicit `SimpleCov` receiver.
@sferik sferik added the Docs label May 26, 2026
Copy link
Copy Markdown
Collaborator

@sferik sferik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for testing this out and catching and fix this documentation bug!

@sferik sferik merged commit 9b19e9a into simplecov-ruby:main May 26, 2026
12 checks passed
@bquorning bquorning deleted the explicit-SimpleCov-receiver-in-dot-simplecov-documentation branch May 26, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants