Hello!

MediaWiki-Codesniffer 0.6.0 has been released, here's what's changed:
* Add Generic.Arrays.DisallowLongArraySyntax to ruleset, autofix this
repo (Kunal Mehta)
* Add sniff to detect consecutive empty lines in a file (Vivek Ghaisas)
* Disable Generic.Functions.CallTimePassByReference.NotAllowed (Kunal Mehta)
* Update squizlabs/php_codesniffer to 2.5.1 (Paladox)

Notably, this release now requires []-style arrays, as well as PHP 5.5.9
or higher to run.

To help automatically migrate, you can use the "phpcbf" tool. I
recommend setting up a "composer fix" command (for example [1]). Running
just "composer fix" will try to auto-fix every file in the repo, while
"composer fix filename" will just check that filename.

[1] https://gerrit.wikimedia.org/r/#/c/271220/

Thanks,
-- Legoktm


_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to