moodlehq / moodle-local_codechecker

A Moodle local plugin providing a simple web UI to run the MoodleCS coding style checks with PHP_CodeSniffer.
63 stars 72 forks source link

Ignore MOODLE_INTERNAL sniff for all Behat classes. #157

Closed paulholden closed 2 years ago

paulholden commented 2 years ago

Mentioned by @stronk7 - we should check whether the file contains a /behat/ folder in it's path, rather than it's immediate descendant having that name:

https://github.com/moodlehq/moodle-local_codechecker/blob/5f4cf1540f6ec9f1dd24c38a906a809fe4b9cef3/moodle/Sniffs/Files/MoodleInternalSniff.php#L50-L53

See MDL-72696 (fails for file lib/behat/form_field/behat_form_inplaceeditable_select.php)