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

Code checker fixes #51

Merged
merged 2 commits into from
Oct 8, 2024
Merged

Conversation

lucaboesch
Copy link
Contributor

Here are additional fixes to let the CI tests pass.

@KepaUrzelai KepaUrzelai merged commit d301242 into iarenaza:master Oct 8, 2024
24 checks passed
@@ -139,7 +109,7 @@ jobs:

- name: Validating
if: ${{ always() }}
run: moodle-plugin-ci validate
run: moodle-plugin-ci validate || true
Copy link
Owner

Choose a reason for hiding this comment

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

Hi @lucaboesch Why are we ignoring the outcome of the moodle-plugin-ci validate command? Just trying to understand the logic behind this particular change 😄

Copy link
Owner

Choose a reason for hiding this comment

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

Oh, I see. validate doesn't know about class aliases, and fails with a "failed to find class filter_multilang2" error.

@lucaboesch
Copy link
Contributor Author

lucaboesch commented Oct 8, 2024

It would fail because there is no class in filter.php.
There it triggers an error elsewise.

continue-on-error: true # This step will show errors but will not fail
if: ${{ always() }}
run: moodle-plugin-ci phpcpd

- name: PHP Mess Detector
Copy link
Owner

Choose a reason for hiding this comment

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

@lucaboesch Why are we removing this check? Is it no longer supported by moodle-plugin-ci?

Copy link
Owner

Choose a reason for hiding this comment

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

I see it has been marked deprecated. Fair enough!

@@ -139,7 +109,7 @@ jobs:

- name: Validating
if: ${{ always() }}
run: moodle-plugin-ci validate
run: moodle-plugin-ci validate || true
Copy link
Owner

Choose a reason for hiding this comment

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

Oh, I see. validate doesn't know about class aliases, and fails with a "failed to find class filter_multilang2" error.

@lucaboesch lucaboesch deleted the codecheckerfixes branch October 9, 2024 06:36
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.

4 participants