- Checking code for a coding standard without automatic checking is very inefficient.
- There is PHP_CodeSniffer which supports a lot of PHP standards (PEAR, Zend, PHPCS, Squiz, Kohana...)
- But none of these standards are compatible with MediaWiki coding standards.
- Do MediaWiki-standard for PHP_CodeSniffer exists? May be anyone know? Сan anyone easily make it?
Topic on Manual talk:Coding conventions
Yeah, I second this. The staff is working on a phpUnderControl instance, so I'm sure they will get around to this eventually.
This post was posted by Peachey88 (Flood), but signed as Cneubauer.
We have stylize.php which will automagically convert code to proper standard.
This post was posted by Peachey88 (Flood), but signed as Bryan.
Where is that? I don't see it in the maintenance directory.
This post was posted by Peachey88 (Flood), but signed as Cneubauer.
This post was posted by Peachey88 (Flood), but signed as MaxSem.
If anyone is interested, I have created a very basic MediaWiki coding style and it is now hosted by the Wikimedia Fundation as mediawiki/tools/codesniffer.git
Gerrit: https://gerrit.wikimedia.org/r/#q,project:mediawiki/tools/codesniffer,n,z
To clone it:
git clone https://gerrit.wikimedia.org/r/p/mediawiki/tools/codesniffer