Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix: {:only} on a per-file basis #5915

Merged
merged 3 commits into from
Nov 14, 2024
Merged

Conversation

MikaelMayer
Copy link
Member

@MikaelMayer MikaelMayer commented Nov 13, 2024

Fixes #5730

Description

Previously, in multi files projects, an {:only} on one member like a method was disabling verification on all other methods, including ones in other files.
However, this is a bug, as the documentation of {:only} states clearly that it disables verification on members in the same file.
This PR ensures that the scope of an {:only} attribute for a member is only the file itself.

How has this been tested?

A multi file test has been added.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@MikaelMayer MikaelMayer changed the title Fix: {:9!) Fix: {:only} on a per-file basis Nov 13, 2024
@MikaelMayer MikaelMayer enabled auto-merge (squash) November 13, 2024 16:30
@MikaelMayer MikaelMayer merged commit 91a3c09 into master Nov 14, 2024
22 checks passed
@MikaelMayer MikaelMayer deleted the fix-5730-only-multi-files branch November 14, 2024 22:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

{:only} issues
2 participants