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

Apply all the standard ignores to the "other" checks #183

Merged
merged 2 commits into from
Feb 14, 2022

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Feb 13, 2022

When invoking phpcs we pass to it a calculated list of
paths to ignore (substring matching).

That includes all the third part libraries, some directories
like the amd/yui build ones, and the list of exclusions added
in the UI.

It works ok, so far.

But, later, when invoking the "other" checks (an ancient list
of custom checks applied to other files, surely to be removed
some day), we don't apply all those ignores commented above.

This PR just makes those calculated ignores to be also applied to
the "other checks". Covered with tests, it seems to be working ok.

Also, fixes a problem with MoodleUtil unit tests breaking CFG
for next tests.

Finally, I've had to disable the (phpdbg) code-coverage generation, because
it was crashing randomly (php8) and it took a good time for me
to realise that it was the cause of the crashes.

See moodlehq/moodle-plugin-ci#94 about to move to xdebug/pcov.

Fixes #179.

@stronk7 stronk7 force-pushed the apply_ignores_to_other_checks branch 6 times, most recently from 00d66d0 to 401920b Compare February 13, 2022 21:44
When invoking phpcs we pass to it a calculated list of
paths to ignore (substring matching).

That includes all the third part libraries, some directories
like the amd/yui build ones, and the list of exclusions added
in the UI.

It works ok, so far.

But, later, when invoking the "other" checks (an ancient list
of custom checks applied to other files, surely to be removed
some day), we don't apply all those ignores commented above.

This PR just makes those calculated ignores to be also applied to
the "other checks". Covered with tests, it seems to be working ok.

Also, fixes a problem with MoodleUtil unit tests breaking CFG
for next tests.

Fixes moodlehq#179.
@stronk7 stronk7 force-pushed the apply_ignores_to_other_checks branch from 401920b to 942fdb1 Compare February 13, 2022 22:48
@andrewnicols andrewnicols merged commit a556e9b into moodlehq:master Feb 14, 2022
@stronk7 stronk7 deleted the apply_ignores_to_other_checks branch February 14, 2022 08:16
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.

Exclude does not work as described
2 participants