Skip to content

test: ensure the return value of MockAuditor.Contains is checked #18319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Jun 11, 2025

It unfortunately doesn't seem possible, even with a custom ruleguard rule, to mark a function as requiring it's return value be used, it looks like you have to go all in on a linter that rejects any unused return values.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ethanndickson ethanndickson marked this pull request as ready for review June 11, 2025 07:01
@ethanndickson ethanndickson merged commit 2377d76 into main Jun 11, 2025
41 checks passed
@ethanndickson ethanndickson deleted the ethan/check-mock-auditor-contains branch June 11, 2025 07:16
@github-actions github-actions bot locked and limited conversation to collaborators Jun 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants