Hello!
MediaWiki-Codesniffer 0.2.0 is now available for use in your MediaWiki
extensions and other projects. Here are the changes since the last
release (0.1.0):
* Fixed sniff that checks globals have a "wg" prefix (Divya)
* New sniff to detect unused global variables (Divya)
* New sniff to detect text before first opening php tag (Sumit Asthana)
* New sniff to detect alternative syntax such as "endif" (Vivek Ghaisas)
* New sniff to detect unprefixed global functions (Vivek Ghaisas)
* New sniff to detect "goto" usage (Harshit Harchani)
* Update ignore with some emacs files. (Mark A. Hershberger)
* Use upstream codesniffer 2.3.0 (Kunal Mehta)
* Make mediawiki/tools/codesniffer pass phpcs (Vivek Ghaisas)
* New sniff to check for spacey use of parentheses (Kunal Mehta)
* Modify generic pass test with a case of not-spacey parentheses (Vivek
Ghaisas)
* Make failing tests fail only for specific respective reasons (Vivek
Ghaisas)
* Change certain errors to warnings (Vivek Ghaisas)
* Update ExtraCharacters Sniff to allow shebang (Harshit Harchani)
To upgrade, just update your composer.json to say 0.2.0 and see if your
code still passes :)
In this release we are now tracking an explicit upstream version
(2.3.0), so you may need to update that dependency as well.
Special thanks to Vivek and James F for helping out with the release today!
If you want to set up PHPCS for your project, see the documentation at
<https://www.mediawiki.org/wiki/Continuous_integration/Entry_points#PHP>
to configure your repository, and file a bug under
#Continuous-Integration-Config to have jenkins configured to run it on
patches.
-- Legoktm