-
Notifications
You must be signed in to change notification settings - Fork 3
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
Suggestion: sniff to check that deprecated methods are ignored for code coverage #95
Comments
Sounds like a plan. I think there is no reason for calculating coverage for deprecated functions. |
That sounds great, I'm all for it! |
In that case, I may as well write it now instead of doing the manual check I was working on ;-) |
See PR #96 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to WordPress/WordPress-Coding-Standards#993 which proposes a sniff to check various other aspects of deprecated functions/methods.
In addition to the WPCS sniff, I would like to suggest a sniff to check that any function/method which has a
@deprecated
tag in the Yoast plugins, also has a@codeCoverageIgnore
tag.Files which are in a
deprecated
folder could be ignored for this sniff (presuming that the PHPUnit code coverage configuration ignores those anyway).Opinions ?
The text was updated successfully, but these errors were encountered: