Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new moodleTodoCommentRegex config option
While everything continues working the same and the Sniff property (`commentRequiredRegex`) still is available and defaulting to `MDL-[0-9]+`, now we can, also, from command line, decide which regular expression to use. That will make things easier from other tools, not having to modify the ruleset phpcs.xml files. Instead just run: vendor/bin/phpcs --runtime-set moodleTodoCommentRegex 'CONTRIB-[0-9]+' or any other valid regular expression (https, github urls...) In order to disable the Sniff, you can pass to it an empty string (apart from excluding it completely if desired, of course) vendor/bin/phpcs --runtime-set moodleTodoCommentRegex ''
- Loading branch information