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

Phpcs phpdoc fixes #15

Merged
merged 6 commits into from
Apr 25, 2024
Merged

Phpcs phpdoc fixes #15

merged 6 commits into from
Apr 25, 2024

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented May 9, 2023

Includes 6 commits (see them for details):

  • Enable phpcs and phpdoc in GHA CI workflow (and add new 404_STABLE branch tests).
  • phpdoc fixes.
  • http to https bulk replacement.
  • more phpcs fixes.
  • move harcoded text to lang strings
  • yet more phpcs fixes.

Should fix #13

Ciao :-)

IMPORTANT NOTE: This is built on top of #14 , where GHA support is added, so it must be merged after it.

@stronk7
Copy link
Member Author

stronk7 commented May 9, 2023

This job (in my fork, where GHA is already enabled) shows how, with the changes in this PR, both phpdoc and phpcs are now happy, 100% free from any warning / error.

https://github.com/stronk7/moodle-local_chatlogs/actions/runs/4925151869

Ciao :-)

IMPORTANT NOTE: This is built on top of #14 , where GHA support is added, so it must be merged after it.

@stronk7 stronk7 force-pushed the phpcs_phpdoc_fixes branch 3 times, most recently from 38621eb to f78bbf7 Compare April 16, 2024 15:41
This makes phpcs stricter (not warnings allowed) and, also,
enabled phpdoc tests.

That way we have all the moodle-plugin-ci tests passing for
the repository and ready to check any future improvement to it.

Fixes moodlehq#13

Also, renew the php/branches combinations and remove some
deprecated stuff.
Just a bulk change, so we have all them moved.
Have kept the UselessOverridingMethod ignored, because
I only wanted to introduce here the minimum changes needed.
Basically:
 - superfluous MOODLE_INTERNAL checks.
 - deprecated print_error() uses.
 - Logical operators (or => ||).
 - small namespace issues in tests.
Also, updated to show the link to the matrix chat room
arrays syntax, test requirements, lang string ordering... nothing
critical, so far.

Also, add 404-STABLE to tests, part of MDLSITE-7646
@stronk7
Copy link
Member Author

stronk7 commented Apr 22, 2024

Friendly pong!

@mudrd8mz mudrd8mz merged commit 45852c9 into moodlehq:main Apr 25, 2024
5 checks passed
@mudrd8mz
Copy link
Member

Friendly pong!

Thanks a lot!

@stronk7
Copy link
Member Author

stronk7 commented Apr 25, 2024

tata!

@stronk7 stronk7 deleted the phpcs_phpdoc_fixes branch April 25, 2024 21:22
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.

Review phpcs & phpdocs fixing all warnings and errors there
2 participants