You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add new moodle.PHPUnit.TestCasesAbstract sniff to check that testcase classes are declared abstract.
Add new moodle.PHPUnit.TestClassesFinal sniff to check that test classes are declared final.
Add new moodle.Commenting.Package sniff to replace those present in moodle-local_moodlecheck.
Add new moodle.Commenting.Category sniffs to replace those present in moodle-local_moodlecheck.
New phpcs.xml.dist to enforce the coding style to follow by ´moodle-cs´ itself. Basically, PSR12 ruled. CI verified from now on.
Changed
Modified own CI scripts, updating various GH actions.
Reallocated own tests structure, to better organise them and fixture files.
Update composer dependencies to current versions, notably PHP_CodeSniffer (3.9.0) and PHPCompatibility (e5cd2e24).
As part of the move to be PSR12 compliant, all the methods used for testing have been converted, without deprecation, to camel case (setStandard(), setSniff(), ...).
ACTION REQUIRED: Any clone/fork using moodle-cs and having own tests will need to adapt them to the new method names.
Fixed
The moodle.Files.MoodleInternal sniff no longer treats Attributes as side-effects.