-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Hello!
MediaWiki-CodeSniffer 16.0.0 is now available for use in your MediaWiki extensions and other projects. This release features some new sniffs and bug fixes.
The full changelog since 15.0.0: * Add sniff to find tests without @covers tags (Kunal Mehta) * Add sniff to use namespaced PHPUnit\Framework\TestCase (Kunal Mehta) * Avoid assignment in return statements (Umherirrender) * Be aware of extension MediaWiki compatibility (Kunal Mehta) * Detect variadic arguments in function comments (Umherirrender) * Disallow PHP 7.2+ `object` type-hint (Kunal Mehta) * Downgrade "Missing parameter comment" to warning (Reedy) * Expand sniff to replace some php aliases with main function (Umherirrender) * Fix SpaceyParenthesisSniff comment detection for ignore statements (Umherirrender) * Fix Undefined index: scope_opener in IfElseStructureSniff (Umherirrender) * Forbid parse_str() without a second argument (Umherirrender) * Remove direction from @param (Umherirrender) * Remove unneeded closing declaration comments (Umherirrender) * Remove unneeded @codingStandardsIgnoreLine from test (Umherirrender) * Skip __construct on checking for @return tags (Umherirrender) * Use SPDX 3.0 license identifier (Kunal Mehta) * Warn on usage of each() (Kunal Mehta)
- -- Legoktm
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Hi everyone,
I just released 16.0.1 to fix a bug[1] that was causing PHPCS to error out in specific cases. Thank you to Umherirrender for both reporting and fixing the issue :-)
A few other minor refactoring changes are included: * Fix SpaceBeforeControlStructureBraceSniff (Thiemo Mättig) * Grade errors about duplicate spaces in PHPDoc tags down to warnings (Thiemo Mättig) * Remove unused code and function arguments from three sniffs (Thiemo Mättig) * Replace substr_compare with substr (Umherirrender) * Streamline SpaceBeforeControlStructureBraceSniff implementation (Thiemo Mättig)
[1] https://phabricator.wikimedia.org/T187575
- -- Legoktm
wikitech-l@lists.wikimedia.org