-
Notifications
You must be signed in to change notification settings - Fork 46
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
Prevent plugin runs to use the moodle.Commenting.TodoComment sniff #267
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #267 +/- ##
============================================
+ Coverage 85.17% 85.19% +0.02%
Complexity 718 718
============================================
Files 75 75
Lines 2232 2236 +4
============================================
+ Hits 1901 1905 +4
Misses 331 331 ☔ View full report in Codecov by Sentry. |
Ok, we have agreed to add a new option (
So this PR is not valid right now... working on it soon... ciao :-) |
50e7728
to
a66c02d
Compare
Commit amended, now the new
Ciao :-) |
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 Eloy, LGTM.
Changelog record is required (feel free to add later). |
a66c02d
to
a347beb
Compare
Thanks @kabalin, I'll add the CHANGELOG details, yep (tomorrow). Also I've converted this to draft because we need the new moodle-cs release to happen in order to get the new unit tests that I've added passing (they require a working moodle-cs with the new config option). Once we bump to new moodle-cs, I'll complete this. Ciao :-) |
a347beb
to
7ab76ff
Compare
CHANGELOG updated with text: Added
Still holding on moodlehq/moodle-cs#91 and |
A new `todo-comment-regex` option has been added to the phpcs command. It allows to specify the regex that will be used with inspecting todo (TODO and @todo) comments. By default, an empty string is used for the option and that makes the Sniff to stop checking. Whoever wants to check for anything (tracker issue, github issue, arbitrary url, ...) can us the new option to configure it. Fixes moodlehq#266
7ab76ff
to
2b00727
Compare
About to go merging this (once tests end), as far as it was approved with all the changes but the Immediately after getting this landed, will make a release, so it can be tested out there (default and custom regular expressions). Ciao :-) |
A new
todo-comment-regex
option has been added to the phpcs command.It allows to specify the regex that will be used with inspecting
todo (TODO and @todo) comments.
By default, an empty string is used for the option and that makes
the Sniff to stop checking. Whoever wants to check for anything
(tracker issue, github issue, arbitrary url, ...) can us the new
option to configure it.
Fixes #266