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
Add support for @infection-ignore-all
annotation
#1468
Conversation
LGTM |
@maks-rafalko This should auto-merge upon approval. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
let's see how automerging works
Can't get it working too. |
@sanmai are you able to create a PR for docs please? |
Where do you think will be the best place to put it? |
Probably, somewhere in the Usage article. There we have information about other annotations like |
I'm not exactly sure these |
Since we have a very explicit annotation `@infection-ignore-all` (added in #1468) that, again, very explicit on the purpose, and works not only for methods, but for most kinds of statements, let's remove `@codeCoverageIgnore` ignorer, that not only implicit (you may only want to ignore a piece of code temporarily, and only ignore) but also messes up the metrics (hides otherwise-uncovered mutations).
See #1231
This PR:
@infection-ignore-all
Give this example Infection won't mutate or even look at anything inside this function:
Likewise, given this annotation Infection won't consider anything in this loop: