moodlehq / moodle-plugin-ci

Helps running Moodle plugins analysis checks and tests under various CI environments.
https://moodlehq.github.io/moodle-plugin-ci/
GNU General Public License v3.0
41 stars 43 forks source link

Ensure that we only use the TodoComment Sniff for core runs, not for plugin ones #266

Closed stronk7 closed 5 months ago

stronk7 commented 5 months ago

With https://github.com/moodlehq/moodle-cs/pull/91 we are introducing a new Sniff that looks for missing MDL-xxxx issue codes in all the TODO and @todo comments (as stated by the coding style).

This Sniff is only for core, hence we have to prevent it to be executed for plugins within moodle-plugin-ci. By disabling it or by setting commentRequiredRegex to an empty value.

Ciao :-)