Releases: moodlehq/moodle-cs
Releases · moodlehq/moodle-cs
v3.6.0
v3.5.2
Fixed
- The branch detector was not able to detect the Moodle version following MDL-83424.
- The
moodle.PHPUnit.TestCaseProvidersniff can now detect fully-qualified class names.
Added
- A new
NamespaceScopeUtilhelper was added with methods to help qualify names within a file.
Take a look at the CHANGELOG for details about other releases.
v3.5.1
v3.5.0
Changed
- Bumped dependencies for:
squizlabs/php_codesnifferto 3.13.2phpcsstandards/phpcsextrato 1.4.0dealerdirect/phpcodesniffer-composer-installerto 1.1.1
- A number of legacy Moodle rules have been removed. See MDLSITE-7597 for further information.
- The
Generic.Arrays.DisallowLongArraySyntaxrule has been changed to an error as planned in #58. - The list of global variables has been updated to reflect the complete list of globals used in Moodle #182.
Take a look at the CHANGELOG for details about other releases.
v3.4.11
Fixed
- The
moodle.Commenting.InlineCommentsniff will now accept a full-stop inside a closing parentheses as valid English. - The
@Transformtag is now an accepted tag for Behat tests - The
moodle.Commenting.InlineCommentsniff is now aware of PHPenumtypes.
Take a look at the CHANGELOG for details about other releases.
v3.4.10
Changed
- The
moodle.NamingConventions.ValidFunctionNamesniff will now ignore errors on methods employing the#[\Override]attribute. - The
moodle.Commenting.MissingDocblocksniff no longer warns about missing docs on non-global anonymous classes, for example those written as an instance class in a unit test.
Fixed
- Fixed an edge case leading to the file phpdoc block being incorrectly detected by various sniffs.
- Fixed a couple of problems with the
moodle.Files.BoilerplateCommentrelated to empty comment lines and to comments in the<?phpopen tag line.
Take a look at the CHANGELOG for details about other releases.
v3.4.9
v3.4.8
Added
- The existing
moodle.PHPUnit.TestCaseCoverssniff now detects multiple uses of the@coversDefaultClassannotation. Only one is allowed by class. - The existing
moodle.Files.BoilerplateCommentsniff now performs more checks (spacing, placement, blank lines, ...) and is able to fix many of them.
Changed
- Made codes for
moodle.Commenting.MissingDocblockmore specific to the scenario (Fixes #154).
Take a look at the CHANGELOG for details about other releases.
v3.4.7
Added
- Add new
moodle.PHPUnit.ParentSetUpTearDownsniff to verify, among other things, that all thesetUp(),tearDown(),setUpBeforeClass()andtearDownAfterClass()methods in unit tests are properly calling to their parent counterparts. Applies to Moodle 4.5 and up. - Add new
moodle.Commenting.ConstructorReturnsniff to check that constructors do not document a return value.
Changed
- Update composer dependencies to current versions, notably
PHP_CodeSniffer(3.10.1) andPHPCompatibility(96072c30). - The
moodle.Commenting.MissingDocblocksniff will now detect use of the Override attribute (Fixes #155).
Fixed
- Various fixes to own (GH workflow) integration tests.
Take a look at the CHANGELOG for details about other releases.
v3.4.6
Fixed
- Solved a problem where Windows file paths were not normalised leading to false positive results on some path-based sniffs.
- Solved a problem with fetching the name of an anonymous class, or closure.