Hi! MediaWiki-CodeSniffer 0.9.0 is now available for use in your MediaWiki extensions and other projects. Here are the notable changes since the last release:
* Add sniff to enforce "function (" for closures (Kunal Mehta) * Add usage of && in generic_pass (addshore) * Disallow `and` and `or` (Kunal Mehta) * Don't require documentation for constructors without parameters (Kunal Mehta) * Don't require documentation for '__toString' (Kunal Mehta) * Don't require return/throws/param for doc blocks with @inheritDoc (Kunal Mehta) * Expand list of standard methods that don't need documentation (Kunal Mehta) * Fix FunctionComment.Missing sniff code (Kunal Mehta) * Fix indentation (Umherirrender) * Fix WhiteSpace/SpaceAfterClosureSniff (Antoine Musso) * Make sure all files end with a newline (Kunal Mehta) * test: ensure consistent report width (Antoine Musso) * Update for CodeSniffer 3.0 (Kunal Mehta) * Update squizlabs/PHP_CodeSniffer to 3.0.1 (Reedy) * Use upstream CharacterBeforePHPOpeningTag sniff (Kunal Mehta) The 3.0 upstream release should bring in a lot of under-the-hood improvements, including support for parallel processing! Note that due to an upstream bug, PHPCS 3.x doesn't work with repos that have "prepend-autoloader": false set. I've begun to submit patches to upgrade to the latest version and automatically fix some of the issues: <https://gerrit.wikimedia.org/r/#/q/topic:bump-dev-deps+status:open>. Thanks to everyone who contributed to this release, please file bugs or feature requests in the MediaWiki-Codesniffer Phabricator project if you find any. -- Legoktm _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l