Skip to content
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

Allow codecoverageignore #180

Merged
merged 2 commits into from
Feb 2, 2022

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Feb 1, 2022

While playing with code coverage, there are some exceptional
places that are not reachable from PHPUnit. So, it's legit to
use the @codeCoverageIgnore annotations, that can be put
both in phpdoc blocks and in inline comments.

This commits enables the later (inline). For phpdoc block we'll
have to enable them in local_moodlecheck.

Covered with tests.

Recommended to look to the commits separately. The 1st one is implementing the feature (allow @codeCoverageIgnore annotations). And the 2nd just is applying it to codechecker own code.

While playing with code coverage, there are some exceptional
places that are not reachable from PHPUnit. So, it's legit to
use the @codeCoverageIgnore annotations, that can be put
both in phpdoc blocks and in inline comments.

This commits enables the later (inline). For phpdoc block we'll
have to enable them in local_moodlecheck.

Covered with tests.
Copy link
Contributor

@junpataleta junpataleta left a comment

Choose a reason for hiding this comment

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

Thanks, Eloy. Looks good to me

@junpataleta junpataleta merged commit 21cab22 into moodlehq:master Feb 2, 2022
@stronk7 stronk7 deleted the allow_codecoverageignore branch February 2, 2022 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants