-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Hello!
MediaWiki-CodeSniffer 15.0.0 is now available for use in your MediaWiki extensions and other projects. This release features a lot of different improvements, and new upstream features. Specifically, there's a new comment syntax for enabling/disabling sniffs for specific lines of code:
// phpcs:disable Some.Sniff.Name weird_code(); // phpcs:enable Some.Sniff.Name
You can also use // phpcs:ignore Some.Sniff.Name to just ignore the next line instead of doing a disable/enable pair.
The full conversion details are in the upstream release notes[1].
The full MediaWiki-CodeSniffer changelog since 14.1.0:
* Add sniff for using is_int over is_integer (Kunal Mehta) * Allow _ in unit test method names (Gergő Tisza) * Check function definitions for the same variable name (Kunal Mehta) * Fix handling of alternative if in IfElseStructureSniff (Umherirrender) * Forbid usage of extract() (Kunal Mehta) * Ignore maintenance scripts in ClassMatchesFilenameSniff (Kunal Mehta) * Improve phpdoc classname parsing (Gergő Tisza) * Move phpcs.xml to .phpcs.xml (Umherirrender) * Remove WhiteSpace.SpaceBeforeSingleLineComment.EmptyComment (Gergő Tisza) * Replace PEAR with Packagist in README.md link (Ricordisamoa) * Require that an explicit visiblity is set on methods and properties (Kunal Mehta) * Rework ExtendClassUageSniff to avoid private class member (Umherirrender) * Skip inner functions in FunctionCommentSniff::processReturn (Umherirrender) * Update PHP_CodeSniffer to 3.2.2 (Ricordisamoa, Kunal Mehta) * Use backticks in HISTORY.md (Ricordisamoa) * Use only PSR2.Files.EndFileNewline (Kunal Mehta) * Use upstream Generic.Files.OneObjectStructurePerFile sniff (Kunal Meht a) * Use upstream Generic.PHP.DiscourageGoto (Kunal Mehta) * Warn on usage of create_function() (Kunal Mehta)
Thank you to all of the contributors for this release!
- -- Legoktm
[1] https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.2.0
wikitech-l@lists.wikimedia.org