-
Notifications
You must be signed in to change notification settings - Fork 17
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
Check package tags #110
Check package tags #110
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #110 +/- ##
============================================
+ Coverage 96.73% 97.06% +0.32%
- Complexity 586 632 +46
============================================
Files 26 28 +2
Lines 1625 1807 +182
============================================
+ Hits 1572 1754 +182
Misses 53 53 ☔ View full report in Codecov by Sentry. |
3cf08d8
to
1a657b4
Compare
e8a1964
to
a0ffbd9
Compare
a0ffbd9
to
289aaa3
Compare
I won't merge this, coz my #111 will conflict then (I imagine, coz both are moving MoodleUtilTest)! (joking, of course) |
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.
Thanks @andrewnicols , this looks perfect for me.
I just would ask for a couple of details:
- Confirmation: Does this cover all the related tests and fixtures that we have in
local_moodlecheck
. Or, with other words, is this a complete replacement? - Maybe, getting used to feed the CHANGELOG as part of the PR is good thing.
And, final reflexion... I think I commented elsewhere... let's give to this initiative a little bit of visibility (chat, forum, integration exposed, ...). Maybe there is something in the plan that we haven't detected, or somebody has a say about it...
Ciao :-)
PS: Feel free to self-merge whenever you read and consider the points above.
Replaces the Package checks in moodle-local_moodlecheck
289aaa3
to
dbbffda
Compare
From what I can see in moodlecheck, there is very little testing of the package tests. See https://github.com/moodlehq/moodle-local_moodlecheck/blob/main/tests/moodlecheck_rules_test.php - there are 7 mentions of the As far as I'm aware, this is a complete replacement. There are two rules for packages:
The specified check notes:
The new checks do the same thing. The valid check notes:
It does this by checking the package against a list returned from
Bah - yes. I must get in this habit (done).
Yes - you suggested this in PM. I'd say let's do:
|
Cool all! |
Announced here: https://moodle.org/mod/forum/discuss.php?d=455786 |
This is a first attempt at migrating one of the checks in moodlecheck as part of #30
This change starts the work required to migrate the
@package
check.There's a lot of duplicated code here right now, and a lot of missing tests, but I've tried to abstract out useful features or use phpcsextra where possible.