[FLOW3-general] FLOW3 CodeSniffer ruleset
Bastian Waidelich
bastian at typo3.org
Wed Apr 11 13:43:36 CEST 2012
Hi all,
there has been several (more or less fruitless) attempts to create
CodeSniffer [1] rulesets for FLOW3 (respectively Phoenix).
Since now more and more IDEs have built-in support for CodeSniffer
rulesets (e.g. Eclipse & PhpStorm 4+) this topic popped up again.
The idea is to extend the existing CodeSniffer git repository [2]:
There are two folders currently: "TYPO3" contains common CodeSniffs and
tests, "TYPOv4" contains a ruleset for the v4 core. We should add a new
folder "FLOW3" there with the ruleset.xml file so that people can simply
clone the git repository (later we could also provide a downloadable zip).
I just started collecting some possible sniffs in the respective forge
project [3] - feel free to adjust/extend the document.
To prevent the project from dying again I'd suggest to start with the
*very basic* rules and build on top of that if it works out.
I'll happily coordinate the process but I'm pretty busy with other
projects at the moment nor have sufficient CodeSniffer knowledge to
kickstart this on my own. So it would be great if at least someone takes
over the responsibility for now an starts with a first version.
Volunteers? ;)
BTW: Once we have a working ruleset we could use a slightly modified
version for Extbase, too.
Best,
Bastian
[1] http://pear.php.net/package/PHP_CodeSniffer
[2]
http://git.typo3.org/Teams/forge.typo3.org/hudson-helpers/tools/PHP_CodeSniffer.git?a=tree
[3] http://forge.typo3.org/projects/team-php_codesniffer/wiki/FLOW3_Ruleset
More information about the FLOW3-general
mailing list