-
Notifications
You must be signed in to change notification settings - Fork 16
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 category tag #112
Check category tag #112
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #112 +/- ##
============================================
+ Coverage 97.07% 97.15% +0.08%
- Complexity 633 655 +22
============================================
Files 28 29 +1
Lines 1809 1864 +55
============================================
+ Hits 1756 1811 +55
Misses 53 53 ☔ View full report in Codecov by Sentry. |
e0cc062
to
a86a4cc
Compare
a86a4cc
to
354e93d
Compare
After discussion with Eloy I've found an approach which satisfies the 4.1 and earlier group. We're using a cached copy of the apis.json from Moodle 4.2 where the file was introduced. The previous behaviour in moodle-local_moodlecheck was to query the devdocs for the current version so this is more accureate. |
a576bf7
to
ddb2325
Compare
ddb2325
to
d8511e5
Compare
d8511e5
to
928323a
Compare
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.
I think this is 99% ready, just have added a couple of comments. Also you've already created #115 so, once the comments are resolved... feel free to merge this.
Ciao :-)
928323a
to
809d4c2
Compare
809d4c2
to
491c94f
Compare
Yippee! |
Okay, so this adds a category check, which consumes the apis.json in the repo.
It currently doesnt' do anything fancy like checking the allowspread, or allowlevel2.
This is based on top of #110.
I don't know how we should handle disabling of the old moodlecheck rule here because apis.json has only existed since 4.2. Is it possible to disable the moodlecheck rule dependant upon a Moodle version?